ALPHA


The ALPHA function will check that the expression consists entirely of alphabetic characters.

 

COMMAND SYNTAX

ALPHA(expression)

 

SYNTAX ELEMENTS

The expression can return a result of any type. The ALPHA function will then return TRUE (1) if the expression consists entirely of alphabetic characters. If any character in expression is non alphabetic then the function returns FALSE (0).

 

NOTES

Alphabetic characters are in the set a-z and A-Z

 

EXAMPLE

Abc = "ABC"
IF ALPHA(Abc) THEN CRT "alphabetic"
Abc = "123"
IF NOT(ALPHA(Abc)) THEN CRT "non alphabetic"

Displays:

alphabetic
non alphabetic


jBC