IsAllAlpha

Top  Previous  Next

×V3.0Ø

S

A

W

WS

ü

ü

Syntax -

       If IsAllAlpha <string expression> …

               Where:

       <string expression> is a literal string or a variable containing a literal string.

 

Description:

This comparison operator is used to scan a literal string or a variable that contains a string value to insure that every character in the string is a letter.  This comparison returns a TRUE condition if all characters in the string are letters (no spaces, punctuation, or numeric digits).

This comparison operator can be used with either an in-line If (the original OLIE™ syntax) or a Block If.

 

Sample:

       The following segment of a script will check the variable code to be sure that it contains only letters.

:CheckRecord

If eof GoTo XIT

Read

REM This will read the patient number from Adhoc and make sure all characters are letters

Copy PatientNum File 2 9

If IsAllAlpha PatientNum GoTo PatNumStart

GoTo CheckRecord

REM A valid line was found, so lets process it.

:PatNumStart

REM Start copying variables from file

 

See Also:

IsAllAlphaNumeric

IsAllNumeric

IsAlphaNumericOrSpace

IsAlphaOrSpace

Complex If Comparisons