IsDigit Procedure

Checks whether the first character of a string is a digit.
If the input string is empty, this function returns false.
Declaration
function IsDigit(text as String) as Boolean

Parameters

Return value

Boolean — True if the first character of the string is a digit, false otherwise.

Example

Code
print IsDigit("1")
print IsDigit("a")
print IsDigit("")
print IsDigit("1a")
print IsDigit("a1")
Output
true
false
false
true
false