Versions
All
Purpose
This function checks to make sure a string contains only alphabetic, numeric, or the provided non-alphabetic characters.
Syntax
Code:$L.success.flag= rtecall ("alnum", $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-numeric characters to allow
Example
When phone in $L.file="(508) 362.2701" $L.success.flag will be false.Code:$L.str=phone in $L.file $L.chars=" , (, ), -" $L.success.flag=rtecall("alnum", $L.return.code, $L.str, $L.chars)
When phone in $L.file="(508) 362-2701" $L.success.flag will be true.



Reply With Quote
Bookmarks