77
60 LPRINT “* 5th Line, 7th Column”
70 LPRINT CHR$(27) ;“fl”;CHR$(3);
80 LPRINT CHR$(27) ;“fO”;CHR$(5);
90 LPRINT I’* 8th Line, 5th Column”
100 END
In this program, line 30 sends a one-time vertical tab with
< ESC > “f’ 1 command. Line 50 sends a one-time horizontal
tab with < ESC > “f’ 0 command. Finally, line 70 and line
80 send one-time vertical tab and one-time horizontal tab, so
the line 90 prints text at the specified position.
Table 5-9
Vertical tab commands
Function Control code
Advance paper to next tab position CHR$(l 1)
Set vertical tabs at nl, n2, etc. < ESC > “B” CHR$(nl)
CHR$(n2) . . . . . CHR$(O)
Set vetrical tabs every n lines < ESC > “e” 1 CHR$(n)
One-time vertical tab <ESC> “f’ 1 CHR$(n)
Cancel vertical tabs <ESC> “R”
(IBM-P mode only)
n Vertical tab channels
Vertical tab channels are especially helpful in two situations.
The first occurs when you are writing a program to accompany
a preprinted form that can accommodate various types of
. responses. The second occurs when you create a multipage form
or report with different vertical tabs on each page.