Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.2 . The Guide To CA-Clippe - <b>isdigit()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ISDIGIT()
 Determine if leftmost character in a character string is a digit
------------------------------------------------------------------------------
 Syntax

     ISDIGIT(<cString>) --> lBoolean

 Arguments

     <cString> is the character string to examine.

 Returns

     ISDIGIT() returns true (.T.) if the first character of the character
     string is a digit between zero and nine; otherwise, it returns false
     (.F.).

 Description

     ISDIGIT() is a character function that determines whether the first
     character in a string is a numeric digit between zero and nine.  If any
     other character is the first character of the <cString>, ISDIGIT()
     returns false (.F.).

     ISDIGIT() is useful where you need to know if the current character
     string is a number before converting it to a numeric value with the
     VAL() function.

 Examples

     .  These examples demonstrate various results of ISDIGIT():

        ? ISDIGIT("AbcDe")         // Result: .F.
        ? ISDIGIT("1abcd")         // Result: .T.
        ? ISDIGIT(".12345")        // Result: .F.

 Files:  Library is EXTEND.LIB.

See Also: ISALPHA() ISLOWER() ISUPPER() LOWER() UPPER()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson