home *** CD-ROM | disk | FTP | other *** search
- 90 print"[147]":poke53280,4:poke53281,1:poke646,11
- 100 print"self addressed labels"
- 110 print"by cheryl peterson"
- 120 print"for ahoy! magazine"
- 200 rem initialize variables
- 201 rem string variables not initiated
- 210 lines=0:passes=0
- 220 gosub 300
- 230 gosub 400
- 240 gosub 500
- 250 open 4,4,0:cmd 4
- 260 for y = 1 to passes
- 270 gosub 700
- 280 next
- 290 print#4:close4
- 295 end
- 300 rem labelformat
- 310 input"how many lines per label";lines
- 320 if lines<4 then goto 310
- 330 lines=lines-4
- 350 return
- 400 rem printnumber
- 410 input"how many labels to print";passes
- 420 return
- 500 rem readdata
- 510 input"enter full name--20 characters or less";name$
- 520 if len(name$)>20 goto 510
- 530 input"enter address--40 characters or less";address$
- 540 if len(address$) > 40 goto 530
- 550 input"enter city name--20 characters or less";city$
- 560 if len(city$)>20 goto 550
- 570 input"enter two character state code";st$
- 580 if len(st$)>2 then goto 570
- 590 input"enter postal or zip code";zip$
- 600 if len(zip$)>9 then goto 590
- 610 return
- 700 rem print routine
- 710 print:print name$
- 720 print address$
- 730 print city$;" ";st$;" ";zip$
- 740 for x=1 to lines
- 750 print
- 760 next
- 790 return
-