Versions
All
Purpose
This function will check to make sure a string contains only alphabetic characters, or only alphabetic characters and the provided non-alphabetic characters.
Syntax
Code:$L.success.flag= rtecall ("alpha", $L.return.code, $L.str, $L.chars)
- $L.success.flag
true = success
false = failure- $L.return.code
returncode of the call- $L.str
The string to be checked- $L.chars
An optional comma delimited string of non-alphabetic characters to allow
Example
When name in $L.file="my name" $L.success.flag will be true.Code:$L.str=name in $L.file $L.chars=" " $L.success.flag=rtecall("alpha", $L.return.code, $L.str, $L.chars)
When name in $L.file="my first name" $L.success.flag will be true.
When name in $L.file="my 1st name" $L.success.flag will be false.



Reply With Quote
Bookmarks