Click or drag to resize

IsXDigit Function

X#
Determine if the leftmost character in a string is a hex character (that is, digits from 1 through 9 and letters from A through F).

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 FUNCTION IsXDigit(
	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 is hex; otherwise, FALSE.
Remarks
Examples
These examples illustrate IsXDigit() applied to various values:
X#
1? IsXDigit("3FDE")                    // TRUE
2? IsXDigit("hjku")                    // FALSE
See Also