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
- text as String — A string possibly containing a digit, like "1".
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