IsAlpha()

<< Click to Display Table of Contents >>

Navigation:  Available Functions >

IsAlpha()

Syntax

IsAlpha( <CharacterValue> )

 

Purpose

To determine if leftmost character in a character value is alphabetic. An alphabetic character consists of any uppercase or lowercase letter from A to Z. IsAlpha() returns false (.F.) if the character value begins with a digit or any other character.

 

Parameters

<CharacterValue> is the value to examine.

 

Returns

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

 

Usage

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

 

Example

The following examples illustrate IsAlpha():

 

CALL

RESULT

IsAlpha("AbcDe")

True

IsAlpha("aBcDE")

True

IsAlpha("1BCde")

False

IsAlpha(".FRED")

False