home *** CD-ROM | disk | FTP | other *** search
- ********** GETDATE COMMAND FILE **********
- * Confirms that the date is entered as YYMMDD by checking to see that
- * the entries for each item are in the correct range. The year is
- * checked against a constant stored in the B:Constant.MEM file.
- **********************************************************************
-
- STORE "T" TO NoDate
- DO WHILE !(NoDate) <> 'F'
- ERASE
- STORE 'YYMMDD' TO Date
- @ 5,10 SAY "Enter TODAY'S date" GET Date
- ? CHR(7)
- READ
-
- IF VAL($(Date,1,2)) <> ThisYear;
- .OR. VAL($(Date,3,2)) < 1 .OR. VAL($(Date,3,2)) > 12;
- .OR. VAL($(Date,5,2)) < 1 .OR. VAL($(Date,
- COORD: