Click or drag to resize

IsAlNum Function

Determine if the leftmost character in a string is alphanumeric.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.5
Syntax
 FUNCTION IsAlNum(
	pszString AS STRING
) AS LOGIC

Parameters

pszString
Type: String
The string to examine.

Return Value

Type: Boolean
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():
X#
1? IsAlNum("AbcDe")        // TRUE
2? IsAlNum("aBcDE")        // TRUE
3? IsAlNum("1BCde")        // TRUE
4? IsAlNum(".Steve")        // FALSE
See Also