i--

i L

j L

i or

:c-

Line Spacing and Forms Control

45

This is what you will get:

DELTA HAS VARIABLE LINE SF-AC I NG

DELTA HAS VARIABLE LINE SPAC I NG

DELTA HAS VAR I ABLE LINE St-AC I NG

DELTA HAS VAR I ABLE LINE SF’ACING

DELTA HAS VARIABLE LINE SF’AC I NG

DELTA HAS VARIABLE LINE SF’AC I NG

DELTA HAS VARIABLE LINE SPACING

DELTA HAS VARIAELE LINE WAC I NG

DELTA HAS VARIABLE LINE SPACING

DELTA HAS VARIABLE LINE SFACI NG

DELTA HAS VARIABLE LINE SPACING

DELTA HAS VARIABLE LINE SPACING

DELTA HAS VARIABLE LINE SF’ACING

DELTA HAS VARIABLE LINE SPACING

DELTA HAS VARIABLE LINE SPACING

Line 30 changes the line spacing. The command (ESC) “A” CHR$(n) changes the line spacing to n/72 of an inch. The loop that is started in line 10 increases the value of n (the variable I in the program) each time it is executed. So the line spacing increases as the program continues. Line 20 just shortcuts the loop when I = 13, since BASIC won’t let us send CHR$(13) without adding an unwanted CHR$(lO) to it. Finally, the (ESC) “2” in line 60 resets the line spacing to 6 lines per inch. This is a shortcut that is the same as ( ESC > “A” CHR$(12).

You may wonder why they picked l/72 of an inch as the incre- ment for the line spacing command. There’s a good reason: the dots that the printer makes are l/72 inch apart. So this means that you can vary the line spacing in increments as fine as one dot- unless you want finer spacing, like one half dot spacing.

The (ESC) “3” CHR$(n) command sets the line spacing in

c

Page 57
Image 57
Star Micronics Delta user manual This is what you will get