IsAlpha Function | |
Determine if the leftmost character in a string is alphabetic.
Namespace:
XSharp.Core
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax FUNCTION IsAlpha(
pszString AS STRING
) AS LOGIC
public static bool IsAlpha(
string pszString
)
Request Example
View SourceParameters
- 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():
1? IsAlpha("Carl")
2? IsAlpha("aBcDE")
3? IsAlpha("1BCde")
4? IsAlpha("..Flemming")
See Also