home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib23a.dsk
/
APRIL.1985
/
STARTUP.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
1KB
|
34 lines
1 REM ************************
2 REM * STARTUP *
3 REM * BY CORNELIS BONGERS *
4 REM * COPYRIGHT (C) 1985 *
5 REM * BY MICROSPARC, INC. *
6 REM * CONCORD, MA 01742 *
7 REM ************************
100 REM STARTUP PROGRAM FOR DATE.TIME
110 TEXT : NOTRACE : HOME : VTAB 10
120 ONERR GOTO 1000
130 LET DA$ = "": & DATA (DA$): POKE 216,0: GOTO 160
140 PRINT CHR$(4);"BRUN DATE.TIME": REM INSTALL DATE ROUTINE
150 LET DA$ = "": & DATA (DA$)
160 IF DA$ = "" GOTO 230: REM DATE NOT YET SET
170 PRINT "THE CURRENT DATE IS ";DA$
180 PRINT : PRINT "DO YOU WANT TO CHANGE IT (Y/N) ? ";:
190 GET A$
200 IF A$ < >"Y" AND A$ < >"N" THEN PRINT CHR$(7);: GOTO 190
210 PRINT A$
220 IF A$ = "N" GOTO 260
230 PRINT : INPUT "ENTER THE DATE (DD-MMM-YY) ";DA$
240 IF DA$ < >"" THEN & DATA (DA$)
250 IF DA$ = "" THEN PRINT "ERROR IN DATE INPUT": GOTO 230
260 PRINT : INPUT "ENTER THE TIME (HH-MM) ";TI$
270 IF TI$ < >"" THEN & TIME(TI$)
280 IF TI$ = "" THEN PRINT "ERROR IN TIME INPUT": GOTO 260
290 REM RETRIEVE AND PRINT DATE AND TIME
300 HOME
310 LET DA$ = "": & DATA (DA$): PRINT "DATE : ";DA$;" ";
320 LET TI$ = "": & TIME(TI$): PRINT "TIME : ";TI$
330 VTAB 22
340 REM ..... ETC.
999 END
1010 RUN 140: REM CONTINUE WITH RUN TO AVOID ONERR PROBLEM