10 '**** DOLIST.BAS **** A program to print a daily `do list' of chores to do
20 '**** written for I.B.Magazette by: Michael P. Ellerbe
30 '**** provides for computer printout of name, date, projects, remarks
40 '**** or allows a blank do list to be printed
45 DIM JOB$(15): KEY (8) ON: ON KEY(8) GOSUB 65000
50 SCREEN 0: KEY OFF: COLOR 3,0: CLS
60 LOCATE 4,15:PRINT"This program prints a do-list of projects to be done for "
70 LOCATE 6,12:PRINT"the day. It allows the user to input from the keyboard "
75 LOCATE 8,12:PRINT"information such as name, date for do-list, day of week,"
80 LOCATE 10,12:PRINT"up to 15 projects for the day, and a remarks statement"
85 LOCATE 12,12:PRINT"at the end. Or if the user wants a blank do-list form"
90 LOCATE 14,12:PRINT"it can be printed."
92 LOCATE 17,15:PRINT"You can exit the program at any time by pressing";:COLOR 11: PRINT" F8.";:COLOR 3
94 LOCATE 24,24:PRINT"Press any key to continue."
105 COLOR 4:LOCATE 25,29:PRINT"Press F8 to EXIT";:COLOR 3
110 IF INKEY$="" THEN 110
115 COLOR 4:LOCATE 25,29:PRINT"Press F8 to EXIT";:COLOR 3
120 COLOR 3,0: CLS: LOCATE 3,30: PRINT"Do List Format": LOCATE 4,30: PRINT"-- ---- ------"
125 COLOR 4:LOCATE 25,29:PRINT"Press F8 to EXIT";:COLOR 3
130 GOSUB 540
140 LOCATE 7,5: PRINT"Do you want a blank form?";
150 ANSW$=INKEY$: IF ANSW$="" THEN 150 ELSE IF ANSW$="Y" OR ANSW$="y" THEN GOTO 340
160 LOCATE 10,5: LINE INPUT"Please enter your full name. ",NAM$
170 LOCATE 13,5: LINE INPUT"What date is the list for? Hit enter for system date. ";DAT$
180 IF LEN(DAT$)=0 THEN DAT$=DATE$
190 LOCATE 16,5: LINE INPUT"What day of the week is the list for? ",DOW$
200 LOCATE 19,5: INPUT"How many projects for the list";NUMJOBS
210 IF NUMJOBS>15 THEN LOCATE 18,5: PRINT"That's too many, please enter a smaller number.";: FOR I=1 TO 1000: NEXT I: LOCATE 19,5: PRINT STRING$(60," "): GOTO 200
220 AN$="y": COUNT = 0: CLS
225 COLOR 4:LOCATE 25,29:PRINT"Press F8 to EXIT";:COLOR 3
230 WHILE (AN$="y" OR AN$="Y") OR COUNT < NUMJOBS
240 COUNT = COUNT + 1: LOCATE COUNT + 3,5
250 PRINT"Enter project #";COUNT;: LINE INPUT JOB$(COUNT)
260 IF COUNT<NUMJOBS THEN GOTO 280 ELSE LOCATE 23,10: PRINT"Any more? (Y/N)";
270 AN$=INKEY$: IF AN$="" THEN 270 ELSE LOCATE 23,10: PRINT STRING$(20," ");
280 WEND
290 LOCATE 21,5: PRINT"Any remarks for the form? (Y/N) ";
300 AN$=INKEY$: IF AN$="" THEN 300
310 IF AN$<>"Y" AND AN$<>"y" THEN GOTO 340
320 LOCATE 22,5: PRINT"What are your remarks? ";
330 LINE INPUT REMK$: IF LEN(REMK$)>60 THEN REMK$=LEFT$(REMK$,60)
340 CLS: LOCATE 8,10: PRINT"Please check your printer for alignment.";: LOCATE 13,10: PRINT"Press any key to begin";
345 COLOR 4:LOCATE 25,29:PRINT"Press F8 to EXIT";:COLOR 3
350 IF INKEY$="" THEN 350 ELSE LOCATE 18,10: PRINT"Printing your `Do List'.";
360 LPRINT CHR$(27)+"E"
370 LPRINT TAB(17);CHR$(14);"Do List for: ";CHR$(148);NAM$