Tests whether the first character of a string is a digit.
bTest = IsDigit(sString)
Variable | Description |
---|---|
bTest | TRUE if the character is a digit. BOOLEAN. |
sString | The string to test. STRING. |
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.
Print(IsDigit("123")) // prints: TRUE Print(IsDigit("hello")) // prints: FALSE