IsDigit()

<< Click to Display Table of Contents >>

Navigation:  Available Functions >

IsDigit()

Syntax

IsDigit( <CharacterValue> )

 

Purpose

To determine if leftmost character in a character value is a digit zero through nine.

 

Parameters

<CharacterValue> is the value to examine.

 

Returns

IsDigit() returns a true/false (logical) value.

 

Usage

Because IsDigit() returns a logical value, it is best suited for use with selections, not reports.

 

Example

The following examples illustrate IsDigit():

 

CALL

RESULT

IsDigit("AbcDe")

False

IsDigit("1abcd")

True

IsDigit(".12345")

False