
79
Table
Horizontal tab commands
Function
Advance to next tab position
Set tabs at nl, n2, etc.
Set tabs every n columns Restore the default tab positions
Control code
CHR$@)
(ESC) “D” CHR$(nl) CHR$(n2) .....
CHWO)
(ESC) “e” 0 CHR$(n)
(ESC) “R”
n
Suppose you need to move to a position across the page, but you only need to do it once. It doesn’t make much sense to set up a tab to use only one time. There is an easier way.
The solution is called a
Table
One-time horzontal tabs
Function |
| Control code | ||
(ESC) “f” 0 CHR$(n) | ||||
spaces |
|
| ||
|
|
| ||
Absolute | horizontal | tab | (ESC) “$” CHR$(nl) CHR$(nZ) | |
|
|
| (ESC) “\” CHR$(nl) CHR$(nZ) | |
Relative | horizontal | tab | (except | |
(FS) “\” CHR$(nl) CHR$(azZ) | ||||
|
|
|
The first command in Table
The absolute horizontal tab command moves the print head to a specified position on the page. The position that you want the print head to move to (measured from the left margin) is specified by the values of nl and n2 in 1/604nch units using the formula nl + n2 x 256.
Try this program to see how this works.
10 ’ Demo of absolute horizontal tabs
20 FOR I=60 TO 70 STEP 2
30 LPRINT I ; “ttttt” ;