4240 INPUT T$,TW$,SD$,ED$,ST$,ET$: FOR J = 1 TO 8: INPUT M$(J): NEXT
4250 PRINT D$"WRITE MESSAGE.BASE,R"I
4260 PRINT Q$;T$: PRINT Q$;TW$: PRINT SD$: PRINT ED$: PRINT ST$: PRINT ET$: FOR J = 1 TO 8: PRINT Q$;M$(J): NEXT
4270 NEXT : PRINT D$"WRITE MESSAGE.BASE,R0": PRINT C: PRINT D$"CLOSE"
4280 PRINT D$"DELETE /RAM/TEMP"
4290 GOTO 4070
4300 REM NO MESSAGES IN DATA BASE
4310 IF NU = 0 THEN VTAB 12: PRINT CHR$(7)"There are no messages in the data base.": PRINT : PRINT "Press a key for the program menu.";: GET A$: PRINT A$: RETURN
4910 PRINT D$"OPEN MESSAGE.BASE,L575": FOR I = 1 TO NU: PRINT D$"READ MESSAGE.BASE,R"I: INPUT A$,B$,C$,E$,F$,G$: IF LEFT$(B$,3) < >"ALL" THEN B$ = "PERSONAL"
4920 IF LEN(A$) <25 THEN A$ = A$ +" ": GOTO 4920
4930 IF LEN(B$) <20 THEN B$ = B$ +" ": GOTO 4930
4940 C$ = LEFT$(C$,2) +"/" + MID$ (C$,3,2) +"/" + RIGHT$(C$,2) +" ": REM 1 SPACE
4950 E$ = LEFT$(E$,2) +"/" + MID$ (E$,3,2) +"/" + RIGHT$(E$,2) +" ": REM 1 SPACE
4960 F$ = LEFT$(F$,2) +":" + RIGHT$(F$,2) +" ": REM 1 SPACE
5770 IF ER = 4 THEN PRINT "DISK IS WRITE PROTECTED!": GOTO 5860
5780 IF ER = 5 THEN PRINT "DATA BASE FILE IS DAMAGED!": GOTO 5860
5790 IF ER = 6 THEN PRINT "PATH NOT FOUND!": GOTO 5860
5800 IF ER = 8 THEN PRINT "I/O ERROR!": GOTO 5860
5810 IF ER = 9 THEN PRINT "DISK IS FULL. MOVE PROGRAM AND MESSAGE.BASE FILE TO A NEW DISK!": GOTO 5860
5820 IF ER = 10 THEN PRINT "DATA BASE FILES ARE LOCKED!": GOTO 5860
5830 IF ER = 11 OR ER = 16 THEN PRINT "SYNTAX ERROR IN LINE "EL".": GOTO 5860
5840 IF ER = 21 THEN PRINT D$"CLOSE": PRINT D$"PREFIX"PR$: RESTORE : GOTO 950
5850 PRINT "ERROR #"ER" HAS OCCURRED IN LINE "EL". PLEASE REFER TO YOUR APPLESOFT OR": PRINT "PRODOS MANUAL.": PRINT D$"CLOSE": PRINT D$"PREFIX"PR$: END
5860 PRINT : PRINT "INSERT YOUR DISK AND PRESS RETURN.": ONERR GOTO 5730