Click or drag to resize

Functions.IsAlpha Method

X#
Determine if the leftmost character in a string is alphabetic.

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

Parameters

pszString
Type: String
The string to examine.

Return Value

Type: Logic
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#
1? IsAlpha("Carl")            // TRUE
2? IsAlpha("aBcDE")        // TRUE
3? IsAlpha("1BCde")        // TRUE
4? IsAlpha("..Flemming")        // FALSE
See Also