Use “DO” Files To Change Printer Format In ZX Pro/File

Authors

Publication

Pub Details

Date

Pages

If you find that you frequently need to change the print format (DEFP) in ZX Pro/File for the TS1000, you can save a lot of cumbersome keypresses by assigning a DO file to do it for you. Since the print format is stored in the three basic variables, C1, C2, and S, it is a fairly simple matter to set their values in a program line rather than input them from the keyboard.

Suppose you want to print out 3 lines starting at line 6 of a file. Your DO file program lines could look something like this:

7000 LET C1=8
7010 LET C2=6
7030 LET S=3
7040 GOTO 17

Remember, C1 always equals 2 more than the number for the first line to LPRINT. By setting C1 to 8, line 6 will be the first to be LPRINTed. After you add these lines, set up a DO file which jumps to the location of your instructions. In this case it is line 7000, but it could be anywhere there is space. When you enter the DO file as a Search Command, the lines will be executed, setting the print format as desired. Then, the last line jumps you back to the Main Menu. NEAT!

Can anyone think of a way to make a DO file set the print format to just one line and then print lines in an order different from the way they appear on the screen? This would be like printing line 6, then 2, then 3, then 8.

Products

Downloadable Media

 
Scroll to Top