670 LOCATE 7,1:PRINT "Terminate with a ? to search for part of a name":PRINT "ie. ";:COLOR 0,7:PRINT ":A? ";:COLOR 7,0:PRINT " will search for all last names starting with A"
680 LOCATE 5,13:MAX.IN=16:GOSUB 2070:IF IN$="" THEN 330
800 IF IN$=CHR$(1) THEN 710 ELSE IF IN$=CHR$(2) THEN 660
810 IF IN$<>"" THEN IF LEFT$(IN$,1)<>LEFT$(LAST$,1) THEN PRINT "You can`t change the first letter of the last name":FOR I=1 TO 1000:NEXT I:GOTO 710 ELSE LAST$=IN$
820 MAX.IN=22:LOCATE 7,13:GOSUB 2070
830 IF IN$=CHR$(1) THEN 710 ELSE IF IN$=CHR$(2) THEN 660 ELSE IF IN$<>"" THEN FIRST$=IN$
840 LOCATE 9,13:MAX.IN=20:GOSUB 2070
850 IF IN$=CHR$(1) THEN 710 ELSE IF IN$=CHR$(2) THEN 660 ELSE IF IN$<>"" THEN LINE1$=IN$
860 LOCATE 11,13:GOSUB 2070
870 IF IN$=CHR$(1) THEN 710 ELSE IF IN$=CHR$(2) THEN 660 ELSE IF IN$<>"" THEN LINE2$=IN$
880 LOCATE 13,13:GOSUB 2070
890 IF IN$=CHR$(1) THEN 710 ELSE IF IN$=CHR$(2) THEN 660 ELSE IF IN$<>"" THEN LINE3$=IN$
900 LOCATE 15,13:MAX.IN=10:GOSUB 2070
910 IF IN$=CHR$(1) THEN 710 ELSE IF IN$=CHR$(2) THEN 660 ELSE IF IN$<>"" THEN ZIP$=IN$
920 LOCATE 17,13:MAX.IN=20:GOSUB 2070
930 IF IN$=CHR$(1) THEN 710 ELSE IF IN$=CHR$(2) THEN 660 ELSE IF IN$<>"" THEN PHONE$=IN$
940 LOCATE 19,13:MAX.IN=1:GOSUB 2070
950 IF IN$=CHR$(1) THEN 710 ELSE IF IN$=CHR$(2) THEN 660 ELSE IF IN$<>"" THEN CODE$=FNCAP$(IN$)
960 GOSUB 1760:GOTO 660
970 GOSUB 1950:LOCATE 5:PRINT "A = Print only 1 address"
980 PRINT:PRINT "B = Print addresses with a specific last name"
990 PRINT:PRINT "C = Print all addresses":PRINT:PRINT "D = Print according to sub code"
1000 PRINT:PRINT "E = End Printing"
1010 PRINT:PRINT:PRINT "Press the key for your choice"
1020 CMD$=INKEY$:IF CMD$="" THEN 1020 ELSE CMD%=INSTR("ABCDE",FNCAP$(CMD$)):IF CMD%=0 THEN SOUND 1000,1:SOUND 2000,1:BEEP:GOTO 1020
1030 SOUND 1000,1:SOUND 2000,2:SOUND 3000,2:IF CMD%=5 THEN 330 ELSE IF CMD%>1 THEN 1150
1050 LOCATE 7,1:PRINT "Terminate with a ? to search for part of a name":PRINT "ie. ";:COLOR 0,7:PRINT ":A? ";:COLOR 7,0:PRINT " will search for all last names starting with A"
1060 LOCATE 5,13:MAX.IN=16:GOSUB 2070:PRINT:PRINT:IF IN$="" THEN 970
1170 LOCATE 7,1:PRINT "Terminate with a ? to search for part of a name":PRINT "ie. ";:COLOR 0,7:PRINT ":A? ";:COLOR 7,0:PRINT " will search for all last names starting with A"
1180 LOCATE 5,13:MAX.IN=16:GOSUB 2070:IF IN$="" THEN 970
1190 PRINT:PRINT:GOSUB 1850:IF NUM<0 THEN LOCATE 5,30:PRINT "Invalid":GOSUB 1920:GOTO 1160
1200 IF NUM=0 THEN LOCATE 5,30:PRINT "None saved under that name":GOSUB 1920:GOTO 1160
1210 GOSUB 1630:IF WHICH=-1 THEN 1160
1220 FOR L=1 TO NUM:NUMBER=NUM%(L):GOSUB 1670:GOSUB 1480:NEXT L:FOR I=1 TO 3000:NEXT I:GOTO 970
1230 IF CMD%=4 THEN 1350
1240 GOSUB 1950:LOCATE 3:PRINT "List all addresses on file":GOSUB 1630:P=0
1250 GOSUB 1630:IF WHICH=-1 THEN 970
1260 FOR LTR=ASC("A") TO ASC("Z")
1270 IN$=CHR$(LTR)+"?":GOSUB 1850
1280 IF NUM=0 THEN 1320
1290 P=P+NUM:FOR L=1 TO NUM
1300 NUMBER=NUM%(L):GOSUB 1670:GOSUB 1480
1310 NEXT L
1320 NEXT LTR
1330 IF P=0 THEN PRINT "None saved on file" ELSE PRINT P;"addresses saved."