Star Micronics NB-15 user manual LPRINT CHR$llFIFTH TAB

Models: NB-15

1 114
Download 114 pages 4.7 Kb
Page 77
Image 77
80 LPRINT CHR$(ll):"FIFTH TAB."

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"

30LPRINT CHR$(27);"fl";CHR$(S);

40LPRINT w* 4th Line, 1st Column"

50LPRINT CHR$(27);"fO";CHR$(7);

60LPRINT '**5th Line, 7th Column"

70LPRINT CHR$(27);"fl";CHR$(3);

80LPRINT CHR$(27);"fO*';CHR$(5);

90LPRINT ))*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

Page 77
Image 77
Star Micronics NB-15 user manual LPRINT CHR$llFIFTH TAB