IsAllAlphaNumeric

Top  Previous  Next

×V4.0Ø

S

A

W

WS

ü

ü

Syntax -

       If IsAllAlphaNumeric <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 numerical digit.  This comparison returns a TRUE condition if all characters in the string are numerical digits (no spaces, symbols, or punctuation).

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 skip the lines in the input file that do not contain the expected 9 digit patient number.

:CheckRecord

If eof GoTo XIT

Read

REM This will read the patient number from an adhoc report and make sure all characters are letters & numbers

Copy PatientNum File 2 9

If IsAllAlphaNumeric PatientNum GoTo PatNumStart

GoTo CheckRecord

REM A valid line was found, so process it.

:PatNumStart

REM Start copying variables from file

 

See Also:

IsAllAlpha

IsAllNumeric

IsAlphaNumericOrSpace

IsAlphaOrSpace

Complex If Comparisons