# Function Reference

StringIsXDigit

Checks if a string contains only hexadecimal digit (0-9, A-F) characters.

StringIsXDigit ( "string" )

Parameters

string | The string to check

Return Value

Success: | Returns 1.
Failure: | Returns 0 if string contains non-hexadecimal characters.

Remarks

Valid characters are 0123456789abcdefABCDEF Note that a string containing whitespace or the "0x" prefix will cause StringIsXDigit to return 0.

Related

StringIsAlNum, StringIsAlpha, StringIsASCII, StringIsDigit, StringIsLower, StringIsSpace, StringIsUpper, StringUpper, StringLower

Example

StringIsXDigit("00FC") ;returns 1
StringIsXDigit("2570") ;returns 1
StringIsXDigit("a cafe") ;returns 0 due to space
StringIsXDigit(1 + 2.0) ;returns 1 due to number-string conversion