home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Du Jour
/
SoftwareDuJour.iso
/
BUSINESS
/
DBASE
/
DBAPG.ARC
/
SETDATE.PRG
< prev
next >
Wrap
Text File
|
1984-08-05
|
1KB
|
36 lines
* Program.: SETDATE.CMD
* Author..: Luis A. Castro.
* Date....: 7/28/83, 11/20/83.
* Notice..: Copyright 1983 & 1984, Ashton-Tate, All Rights Reserved.
* Notes...: Sets the system date with a verified date.
*
SET TALK OFF
SET BELL OFF
IF $(DATE(),1,5)="00/00"
*
* ---The system date was not entered.
ERASE
@ 2, 0 SAY "S Y S T E M D A T E"
@ 3, 0 SAY "========================================"
@ 3,40 SAY "========================================"
*
* ---Loop through until a valid date is entered.
STORE F TO is:valid
DO WHILE .NOT. is:valid
STORE " / / " TO mdate
@ 5,0 SAY "Enter system date as MM/DD/YY ";
GET mdate PICTURE "99/99/99"
READ
* ---Date verification routine.
DO Datetest
ENDDO
*
* ---The system date is set at this point.
SET DATE TO &mdate
RELEASE is:valid, mdate
ENDIF
SET BELL ON
SET TALK ON
RETURN
* EOF: SETDATE.CMD