Click or drag to resize

IsAlpha Function

Determine if the leftmost character in a string is alphabetic.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.2a
Syntax
 FUNCTION IsAlpha(
	pszString AS STRING
) AS LOGIC
View Source

Parameters

pszString
Type: String
The string to examine.

Return Value

Type: Boolean
TRUE if the first character in <pszString> is alphabetic; FALSE if the string begins with a digit or any other non-alphabetic character.
Remarks
This function is nation-dependent.  In the US version, for example, an alphabetic character  is any uppercase or lowercase English letter from A to Z.
Examples
These examples demonstrate various results of IsAlpha():
X#
? IsAlpha("Carl")                        // TRUE
? IsAlpha("aBcDE")                // TRUE
? IsAlpha("1BCde")                // TRUE
? IsAlpha("..Flemming")                // FALSE
See Also