Xbasic
ISDIGIT Function
Syntax
Result_Flag as L = ISDIGIT(C character)
Arguments
- character
A character string.
Description
Returns TRUE if the first character of a string is a digit.
Discussion
ISDIGIT() returns .T. (TRUE) if the first character of Character_String is a number; otherwise, it returns .F. (FALSE).
Example
? isdigit("Alpha") = .F. ? isdigit("1Alpha") = .T.
See Also