The following annex to Mail Merge was added to print out the categories of this INDEX after the Mail Merge program had Sorted the subjects by title. <GO TO 6000> prints the individual columns.
6000>INPUT "Nbr of Items ";x1: INPUT "INPUT First TAB ";tb:
INPUT "2nd Tab ";tb2
6002 FOR n=1 TO x1: LET m$=o$(n,1): LET y$=o$(n,2)
6004 IF m$(LEN m$)=" " THEN LET m$=m$( TO LEN m$-1): GO TO 6
004
6006 IF y$(LEN y$)=" " THEN LET y$=y$( TO LEN y$-1): GO TO 6
006
6008 LPRINT TAB tb;m$;TAB tb2;y$
6010 NEXT n: STOP
TIP: For all computers that use DIMENSIONED CHARACTER ARRAYS. Is there one that doesn’t? The above routine will be explained. The DATA FILE is O$(a,b,c), a three dimensional array. “a” is the number of names in a mailing list. “b” is the number of information lines. “c” is the number of characters reserved for the lines. In the case of the INDEX on the opposite page, we use the first two “b” lines. The first line is the topic and the second line is the page number. We combine these two lines into one for printing. If direct print of the combined lines is done, the “empty spaces in the dimensioned line” would not allow flexible printing to TAB. GO TO 6000 executes the routine.
Line 6000 assigns var x1 to the number of titles to print. The n counter is used to count to x1. The data in line 1 is assigned to M$, and the data in line 2 is assigned to Y$. Line 6004 uses “recursive” programming to trim all empty spaces from line 1. Line 6006 does the same for line 2. In both instances, the line loops itself until the IF THEN condition is false, then drops to the next line. Each loop trims one empty space from the data line. Then line 6008 prints the two data lines on one paper line at tab. Line 6008 is adjustable, and could print the data to whatever two TAB positions desired. Line 6010 <NEXT n> gets the next two lines to process. Approximately one-half second is consumed while processing each two line group.
TRUMP TIP
Kinda hard to read that inset, eh? The manual for the Trump Card is kinda like that. I’ve got it figgered that Miracle bunch has a printing office in Scotland, and you know how thrifty the Scots are, eh? Wot? Anyhow, the Trump manual is just too teenie weenie to read and kompersend. BUT, ther’s lotsa good puddin in the pages that we need to read. In fact iff’n we dont be a readin it we wont be a larn’ng it atall. The answer is to truck it down to a copy shop and blow it up exactly 4 times, so’s the pages comes out 8 1/2 X 11 inches. That’ll cost ya bout $5.00 that the Scots saved, and then you can be a learning all about the Trump stuff that you wont unless you do that.
PAY ATTENTION! The above was throwed in to fill space which was an afterthought. UPDATE ISN’T CASUAL READING. What we try to do is to give you a THREE MONTH project so that when you are about through with one issue the next one hits your mail box. Sometoimes we mix in bit of Cajun and Nawrth Flurda Cracker talk when we don no no nuther ways ah tellin at it.
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.