IsAlpha Function

Action

Tests whether the first character of a string is an alphabetic character.

Syntax

bTest = IsAlpha(sString)
Variable Description
bTest TRUE if the first character is a letter. BOOLEAN.
sString The string to test. STRING.

Notes

IsAlpha returns TRUE if the first character of sString is an ASCII alphabetic character (in the range a through z or A through Z); otherwise it returns FALSE.

IsAlpha emulates the application of the C library function iswalpha on the first character of a specified string. IsAlpha is locale sensitive.

Example

Print(IsAlpha("hello")) // prints: TRUE
Print(IsAlpha("123")) // prints: FALSE