Develop > Programming > System Language reference > List: rtecalls > rtecall("isalnum") function

rtecall("isalnum") function

A RAD function that verifies that a string contains only alphabetic, numeric, or the non-alphabetic characters provided.

Function

rtecall("isalnum")

Format

$L.success.flag= rtecall ($L.fnc.name, $L.return.code, $L.str, $L.chars)

Parameters

The following parameters are valid for the rtecall("isalnum") function:

Parameter Data type Description
$L.success.flg Logical Indicates if the function was successful.
$L.fnc.name String Name of the sub-function to call, in this case "isalnum".
$L.return.code Number Provides a more detailed return code.
$L.str String The string to be checked.
$L.chars String An optional comma-delimited string of non-numeric characters to allow.

Factors

If the $L.success.flg is false, the function failed. If it is true, the function succeeded.

Example

 $L.success.flag=true
 $L.return.code=0
 $L.str=phone in $L.file
 $L.chars=" , (, ), -"
 $L.success.flag=rtecall("isalnum", $L.return.code, $L.str, $L.chars)

Results:

  • When phone in $L.file="(508) 362.2701", $L.success.flag is false.
  • When phone in $L.file="(508) 362-2701", $L.success.flag is true.