IsAlNum Function | |
Determine if the leftmost character in a string is alphanumeric.
Namespace:
XSharp.Core
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax FUNCTION IsAlNum(
pszString AS STRING
) AS LOGIC
public static bool IsAlNum(
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 either alphabetic or numeric; FALSE if the string begins with any character other than a number or letter.
Remarks
This function is nation-dependent. In the US version, for example, an alphanumeric character is a number from '0' to '9' or an uppercase or lowercase English letter from A to Z.
Examples
These examples demonstrate various results of IsAlNum():
1? IsAlNum("AbcDe")
2? IsAlNum("aBcDE")
3? IsAlNum("1BCde")
4? IsAlNum(".Steve")
See Also