Publication: Syntax
Pub Details: Syntax/Syntax ZX80 v4 n10 (Volume 4, Issue 10)
Date: October 1983
Pages: 2
J. Brezina of Elmhurst, IL, reports to get correct Puerto Rican and Washington, DC, zip codes in ZIP-TO-STATE…(Sept.83), delete lines 5140 and 5150 and add the following lines. Also, delete line 5110 (a repetition).
5125 IF CODE Z$(X)<10 THEN LET U$="0"+U$
5135 IF CODE Z$(X+1)<10 THEN LET V$="0"+V$
NEW SYNTACTIC SUM: 44528, 8K ROM
W.C. Andrews of San Anselmo, CA, sent this correction/improvement:
5140 IF VAL U$<=9 THEN LET U$="0"+STR$ (CODE Z$(X))
5150 IF VAL V$<=9 THEN LET V$="0"+STR$ (CODE Z$(X+1))
5200 CLS
5210 PRINT AT 8,4;"THE ZIP CODE RANGE FOR",,TAB 13;"""";X$;"""",,TAB 14;"IS",,,TAB 7;"▛▀▀▀▀▀▀▀▀▀▀▀▀▀▀▜",TAB 7;"▌";Y$;U$;"00 -- ";Y$;V$;"99";"▐",TAB 7;"▙▄▄▄▄▄▄▄▄▄▄▄▄▄▄▟"
5220 GOTO 580
5250 PRINT AT 8,4;"THE ZIP CODE RANGE FOR",,TAB 13;"""NY""",,TAB 14;"IS",,,TAB 7;"▛▀▀▀▀▀▀▀▀▀▀▀▀▀▀▜",TAB 7;"▌09000 -- 14999▐",TAB 7;"▙▄▄▄▄▄▄▄▄▄▄▄▄▄▄▟"
5270 GOTO 580
5300 STOP
NEW SYNTACTIC SUM: 51129, 8K ROM
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.