IsAlphaOrSpace

Top  Previous  Next

×V4.2Ø

S

A

W

WS

ü

ü

Syntax -

       If IsAlphaOrSpace <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 either a letter or a space.  This comparison returns a TRUE condition if all characters in the string are letters or spaces (no 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 PatientName variable to be sure that it contains only letters or spaces.

:CheckRecord

If eof GoTo XIT

Read

REM This will read the patient name from Adhoc and make sure all characters are letters or spaces.

Copy PatientName File 2 19

If IsAlphaOrSpace PatientName GoTo PatStart

GoTo CheckRecord

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

:PatStart

REM Start copying variables from file

 

See Also:

IsAllAlphaNumeric

IsAllNumeric

IsAlphaNumericOrSpace

IsAllAlpha

Complex If Comparisons