IsDigit Function

Action

Tests whether the first character of a string is a digit.

Syntax

bTest = IsDigit(sString)
Variable Description
bTest TRUE if the character is a digit. BOOLEAN.
sString The string to test. STRING.

Notes

IsDigit returns TRUE if the first character of sString is a digit (0 through 9); otherwise it returns FALSE.

IsDigit emulates the application of the C library function iswdigit on the first character of a specified string.

Example

Print(IsDigit("123")) // prints: TRUE
Print(IsDigit("hello")) // prints: FALSE