IsDigit()

ISDIGIT()

Checks if leftmost character is a digit character

Syntax

      ISDIGIT( <cString> ) --> lDigit

Arguments

<cString> Any character string

Returns

lDigit Logical true (.T.) or false (.F.).

Description

This function takes the character string <cString> and checks to see if the leftmost character is a digit, from 1 to 9. If so, the function will return a logical true (.T.); otherwise, it will return a logical false (.F.).

Examples

      ? ISDIGIT( "12345" )      // .T.
      ? ISDIGIT( "abcde" )      // .F.

Compliance

Clipper

Platforms

All

Files

Library is rtl

Seealso

ISALPHA(), ISLOWER(), ISUPPER(), LOWER(), UPPER()

Advertisements

4 responses to “IsDigit()

  1. Pingback: Harbour Check Functions | Viva Clipper !

  2. Pingback: Harbour All Functions – I | Viva Clipper !

  3. Pingback: Harbour String Functions | Viva Clipper !

  4. Pingback: Harbour RG Summary | Viva Clipper !

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s