Versions
All
Purpose
This function checks to make sure a string contains only alphanumeric characters. The first character must be alphabetic. The remaining characters must be alphabetic, numeric, or the provided non-alphabetic characters.
Syntax
Code:$L.success.flag= rtecall ("alalnum", $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-alphanumeric 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("alalnum", $L.return.code, $L.str, $L.chars)
When name in $L.file="my_name" $L.success.flag will be true.
When name in $L.file="my name" $L.success.flag will be false.



Reply With Quote
Bookmarks