
69
Table
Function | Control code | |
(ESC) “f” OCHR$(n) | ||
spaces | ||
(ESC) “$” CHR$(nl)CIIIl$(@ | ||
Absolutehorizontaltab | ||
Relativehorizontaltab | (ESC) “\” CHR$(nl)CHR$(n2) |
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 using the formula nl + n2
x256. The units by which the print head actually moves vary with the print pitch you are using, as shown in Table
Try this program to see how this works.
In this program, the print head is positioned before the “H” in “Horizontal” is printed.
‘t..;,).1:::!,,
‘1::.:;1. .1::1,, ‘t.21::)s,
|
|
| “!:al:],,. |
,!~] | I’””li::il’”::!c,r) “1:A.:1. | “[:;(L. .!3,! | |
..7,... |
|
|
|
Hc)l ”” 1. ;; i::)l”i‘!:.A 1. | ‘t. .::31:2ii |
The relative horizontal tab command can move the print head right from the current position. The formula for calculating how much the print head moves is the same as in the absolute horizontal tab command. However, the units by which the print head actually moves vary with the print pitch you are using as shown in Table