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

rtecall("isalpha") function

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

Function

rtecall("isalpha")

Format

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

Parameters

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

Parameter Data type Description
$L.success.flg Logical Indicates whether or not the function was successful.
$L.fnc.name String The name of the sub-function to call, in this case "isalpha".
$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-alphabetic 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=name in $L.file
 $L.chars=" "
 $L.success.flag=rtecall("isalpha", $L.return.code, $L.str, $L.chars)

Results:

  • When name in $L.file="my name" $L.success.flag is true.
  • When name in $L.file="my first name" $L.success.flag is true.
  • When name in $L.file="my 1st name" $L.success.flag is false.