Star Micronics NB-15 User Manual page 77

Star micronics printer user's manual
Table of Contents

Advertisement

69
Add one more line to the program to demonstrate
one more
feature of vertical tabs.
80 LPRINT CHR$(ll):"FIFTH TAB."
Now when you run the program the first page looks just like
before, but line 80 sends one more <VT > than there are tabs.
This doesn't confuse your printer - it advances the paper to the
next tab position which happens to be the first tab position on
the next page. That's nice, isn't it?
There's a one-time vertical tab command that works just like
the one-time horizontal
tab command.
Try this program
how
these command work.
10 ' Demo of print
positions
20 LPRINT w* 1st Line, 1st Column"
30 LPRINT CHR$(27);"fl";CHR$(S);
40 LPRINT w* 4th Line, 1st Column"
50 LPRINT CHR$(27);"fO";CHR$(7);
60 LPRINT '** 5th Line, 7th Column"
70 LPRINT CHR$(27);"fl";CHR$(3);
80 LPRINT CHR$(27);"fO*';CHR$(5);
90 LPRINT ))* 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.
* 1st Line,
1st Column
* 4th Line,
1st Column
* 5th Line,
7th Column
* 8th Line,
5th Column

Advertisement

Table of Contents
loading

Table of Contents