10020 ILLEGAL = 0 ' No illegal entry yet, just checking (Ch. 10)
10030 IF FIRSTNAME$ = "" THEN FIRSTNAME$ = "N/A":GOTO 10220
10040 FOR CHECK = 1 TO LEN(FIRSTNAME$) ' Legal entries on next line
10050 IF ASC(MID$(FIRSTNAME$,CHECK,1)) >= 65 AND ASC(MID$(FIRSTNAME$,CHECK,1)) <= 90 THEN 10210 ' A through Z
10060 IF ASC(MID$(FIRSTNAME$,CHECK,1)) >= 97 AND ASC(MID$(FIRSTNAME$,CHECK,1)) <= 122 THEN 10210 ' a through z
10070 IF ASC(MID$(FIRSTNAME$,CHECK,1)) = 32 OR ASC(MID$(FIRSTNAME$,CHECK,1)) = 38 OR ASC(MID$(FIRSTNAME$,CHECK,1)) = 39 THEN 10210 ' Space apostrophe, & ampersand
10080 IF ASC(MID$(FIRSTNAME$,CHECK,1)) >= 45 AND ASC(MID$(FIRSTNAME$,CHECK,1)) <= 46 THEN 10210 ' Dash & period
10090 ILLEGAL = 1 ' ILlegal entry found (Ch. 10)
10100 PRINT CHR$(7) ' Beep (Ch. 10)
10110 PRINT FNCUR$(3,0);FNCLLN$ ' Clear third line from top
10120 PRINT FNCUR$(5,0);FNCLLN$ ' Clear fifth line from top
10130 FOR COUNT = 1 TO 3 ' Bink error message
10140 PRINT FNCUR$(4,0);FNCLLN$ ' Clear fourth line from top
10150 FOR PAUSE = 1 TO 100:NEXT PAUSE ' Count to 100 silently (Ch. 7)
10160 PRINT FNCUR$(4,18);"Illegal Entry!"
10170 FOR PAUSE = 1 TO 100:NEXT PAUSE ' Count to 100 silently (Ch. 7)
10180 NEXT COUNT
10190 PRINT FNCUR$(5,2);"Please re-enter without digits or punctuation."
11020 ILLEGAL = 0 ' No illegal entry yet, just checking (Ch. 10)
11030 IF LASTNAME$ = "" THEN LASTNAME$ = "N/A":GOTO 10220
11040 FOR CHECK = 1 TO LEN(LASTNAME$) ' Legal entries on next line
11050 IF ASC(MID$(LASTNAME$,CHECK,1)) >= 65 AND ASC(MID$(LASTNAME$,CHECK,1)) <= 90 THEN 11210 ' A through Z
11060 IF ASC(MID$(LASTNAME$,CHECK,1)) >= 97 AND ASC(MID$(LASTNAME$,CHECK,1)) <= 122 THEN 11210 ' a through z
11070 IF ASC(MID$(LASTNAME$,CHECK,1)) = 32 OR ASC(MID$(LASTNAME$,CHECK,1)) = 38 OR ASC(MID$(LASTNAME$,CHECK,1)) = 39 THEN 11210 ' Space apostrophe, & ampersand
11080 IF ASC(MID$(LASTNAME$,CHECK,1)) >= 45 AND ASC(MID$(LASTNAME$,CHECK,1)) <= 46 THEN 11210 ' Dash & period
11090 ILLEGAL = 1 ' ILlegal entry found (Ch. 10)
11100 PRINT CHR$(7) ' Beep (Ch. 10)
11110 PRINT FNCUR$(3,0);FNCLLN$ ' Clear third line from top
11120 PRINT FNCUR$(5,0);FNCLLN$ ' Clear fifth line from top
11130 FOR COUNT = 1 TO 3 ' Bink error message
11140 PRINT FNCUR$(4,0);FNCLLN$ ' Clear fourth line from top
11150 FOR PAUSE = 1 TO 100:NEXT PAUSE ' Count to 100 silently (Ch. 7)
11160 PRINT FNCUR$(4,18);"Illegal Entry!"
11170 FOR PAUSE = 1 TO 100:NEXT PAUSE ' Count to 100 silently (Ch. 7)
11180 NEXT COUNT
11190 PRINT FNCUR$(5,2);"Please re-enter without digits or punctuation."