Tests whether the first character of a string is an alphabetic character.
bTest = IsAlpha(sString)
Variable | Description |
---|---|
bTest | TRUE if the first character is a letter. BOOLEAN. |
sString | The string to test. STRING. |
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.
Print(IsAlpha("hello")) // prints: TRUE Print(IsAlpha("123")) // prints: FALSE