ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

90 lines
2.9 KiB

  1. 1 REM ENVELOPE
  2. 5 CLEAR 1000
  3. 10 CLS
  4. 20 PRINT TAB(15); "ENVELOPE WRITING PROGRAM"
  5. 30 PRINT"THIS PROGRAM WILL GENERATE A PRINTED ENVELOPE ON A LINE
  6. 35 PRINT "PRINTER. UNLESS TRACTOR FED ENVELOPES ARE AVAILABLE A FRICTION
  7. 40 PRINT"FEED PRINTER MUST BE HOOKED UP TO THE SYSTEM. THE USER
  8. 45 PRINT"INPUTS A RETURN ADDRESS,AN ADDRESS, THE LENGTH OF THE ENVELOPE
  9. 50 PRINT"IN LINES(6 LINES TO THE INCH), AND NUMBER OF COPIES. MANY
  10. 55 PRINT"OF THE INPUT VALUES MAY BE REPEATED ON SEVERAL ENVELOPES
  11. 60 PRINT"WITHOUT ADDITIONAL INPUT.
  12. 90 PRINT:INPUT"PRESS ENTER TO BEGIN";Z9$
  13. 190 GOSUB 600
  14. 195 GOTO 1000
  15. 200 CLS
  16. 210 INPUT"ENTER # OF TYPED LINES WHICH CAN FIT ON ENVELOPE";N
  17. 215 IF N<>INT(N) OR N<=0 THEN GOSUB 10000:GOTO 210
  18. 220 REM INPUT OF RETURN ADDRESS
  19. 222 PRINT"NO COMMAS IN THE FOLLOWING, PLEASE.":PRINT
  20. 225 CLS
  21. 226 PRINT"NO COMMAS IN THE FOLLOWING, PLEASE.":PRINT
  22. 227 FOR I=1 TO 4
  23. 230 PRINT"ENTER LINE #";I;" OF RETURN ADDRESS(-1 FOR EMPTY)"
  24. 240 INPUT L$(I+1)
  25. 245 IF L$(I+1)="-1" THEN L$(I+1)=" "
  26. 250 NEXT I
  27. 290 RETURN
  28. 300 REM ENTER MAIL TO ADDRESS
  29. 305 PRINT
  30. 307 CLS
  31. 308 PRINT"NO COMMAS IN THE FOLLOWING, PLEASE.":PRINT
  32. 310 FOR I=1 TO 4
  33. 320 PRINT"ENTER LINE #";I;" OF MAIL TO ADDRESS(-1 FOR EMPTY)"
  34. 330 INPUT L$(I+8)
  35. 340 IF L$(I+8)="-1" THEN L$(I+8)=" "
  36. 350 NEXT I
  37. 390 RETURN
  38. 400 REM PRINT ENVELOPE ON SCREEN
  39. 410 CLS
  40. 420 FOR I=1 TO 12:PRINT TAB(T(I)); L$(I):NEXT
  41. 430 PRINT:GOSUB 10100
  42. 490 RETURN
  43. 500 REM PRINT ENVELOPE ON PRINTER
  44. 505 CLS:INPUT"HOW MANY ENVELOPES DO YOU DESIRE";K
  45. 510 FOR JE=1 TO K
  46. 520 FOR I=1 TO N:LPRINT TAB(T(I)); L$(I):NEXT
  47. 530 GOSUB 10100
  48. 540 PRINT
  49. 550 NEXT
  50. 590 RETURN
  51. 600 REM NEW DATA
  52. 610 CLEAR 1000
  53. 620 DIM L$(100):DIM T(30)
  54. 625 FOR I = 1 TO 30:T(I)=1:NEXT
  55. 630 FOR I=1 TO 5:T(I)=2:NEXT
  56. 640 FOR I=7 TO 12:T(I)=30:NEXT
  57. 650 N=22:REM LENGTH OF ENVELOPE IN PRINTED LINES
  58. 655 FOR I = 1 TO 100:L$(I)="":NEXT
  59. 660 FOR I=1 TO 25:L$(I)=" ":NEXT
  60. 690 GOTO 1000
  61. 700 REM CHANGE PRINT TABS
  62. 710 CLS
  63. 720 PRINT"PRESENT RETURN ADDRESS TAB = ";T(3)
  64. 730 INPUT"NEW RETURN ADDRESS TAB";T(3)
  65. 735 FOR I=1 TO 5:T(I)=T(3):NEXT
  66. 740 PRINT
  67. 750 PRINT"PRESENT MAIL-TO ADDRESS TAB = ";T(10)
  68. 760 INPUT"NEW MAIL-TO TO ADDRESS TAB";T(10)
  69. 770 FOR I=7 TO 12:T(I)=T(10):NEXT
  70. 780 RETURN
  71. 800 CLS:PRINT"PRESENT NUMBER OF ENVELOPE LINES = ";N
  72. 810 PRINT:INPUT"NEW NUMBER OF LINES ";N
  73. 815 IF N<>INT(N) OR N<=0 THEN GOSUB 10000:GOTO 810
  74. 820 RETURN
  75. 1000 CLS:PRINT TAB(15); "MENU":PRINT
  76. 1005 PRINT "0. QUIT
  77. 1010 PRINT "1. INPUT RETURN ADDRESS
  78. 1020 PRINT "2. INPUT MAIL TO ADDRESS
  79. 1030 PRINT "3. PRINT ENVELOPE ON SCREEN
  80. 1040 PRINT "4. PRINT ENVELOPE ON PRINTER
  81. 1050 PRINT "5. CLEAR DATA:READY FOR NEW ENVELOPE
  82. 1060 PRINT "6. CHANGE PRINT TABS FOR RETURN ADDRESS OR MAIL TO ADDRESS
  83. 1070 PRINT"7. CHANGE # LINES ON ENVELOPE
  84. 1100 PRINT:INPUT"MAKE YOUR CHOICE";ZC
  85. 1105 IF ZC = 0 THEN END
  86. 1110 ON ZC GOSUB 220,300,400,500,600,700,800
  87. 1120 GOTO 1000
  88. 10000 PRINT"INPUT ERROR! TRY AGAIN!":FOR J=1 TO 300:NEXT J:RETURN
  89. 10100 INPUT"PRESS ENTER TO CONTINUE";Z9$:RETURN