C5_ISDIGIT

 ISDIGIT()
 Determine if the leftmost character in a character string is a digit
------------------------------------------------------------------------------
 Syntax

     ISDIGIT(<cString>) --> lBoolean

 Arguments

     <cString> is the character string to be examined.

 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()

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.