Function IsAlpha() Foundation

Tests whether a character string begins with a letter.

Syntax
IsAlpha( <cString> ) --> lBoolean
Parameters
<cString>
<cString> is a character string expression.
Return

When the first character in <cString> is a letter, IsAlpha() returns .T. (true), otherwise it returns .F. (false).

Description

The character function IsAlpha() tests whether the first character in a character string is a letter (an alphabetical character). Lower and upper case letters from A to Z are recognized as letters. In addition language dependent special characters like umlauts or , and are identified as alphabetical characters if the appropriate collation table is selected. If the first character is a digit, blank space, punctuation mark and other graphic character, IsAlpha() returns .F. (false).

The result depends on SET COLLATION and can be manipulated by LocaleConfigure() .

Examples
IsAlpha()
// The example shows various results for the function IsAlpha() 

PROCEDURE Main 

   ? IsAlpha("Xbase++")             // result: .T. 
   ? IsAlpha("Xbase++")             // result: .T. 
   ? IsAlpha("eastern")             // result: .T. 

   ? IsAlpha("1,0")                 // result: .F. 
   ? IsAlpha(",null")               // result: .F. 
   ? IsAlpha(" null")               // result: .F. 

RETURN 
Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.