IsDate |
Top Previous Next |
×V2.1Ø
Syntax - If IsDate <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 the string contains a date. This comparison returns a TRUE condition the string can be coerced into a date. This comparison operator can be used with either an in-line If (the original OLIE™ syntax) or a Block If.
Note: This comparison operation does recognize the INVISION date format MMDDYY, this can lead to a non-date number being interpreted as a date.
Sample: :CheckRecord REM This will read the date from the Adhoc Copy to a variable and make sure it is a date If EOF GoTo Xit Read
Copy Date File 2 8
REM A valid line was found, so lets process it. If IsDate Date GoTo Start
REM A valid line was not found, read next record GoTo CheckRecord
:Start REM start copying variables from file
See Also:
|