Star Micronics NB-15 user manual 10 ’ Demo of vertical tabs 40 LPRINT CHR$11 “FIRST TAB.”

Models: NB-15

1 114
Download 114 pages 4.7 Kb
Page 76
Image 76
10 ’ Demo of vertical tabs

68

set at line 20, a vertical tab (or <VT>) will move you to line 20 whether you start from line 5 or line 19.

The vertical tab is not set at the power-on default. If you send a CHR$(ll), which is the ASCII code for < VT > , before we have set up tabs advance the paper one line. Enter this program to see how this works.

10 ’ Demo of vertical tabs

40LPRINT CHR$(11) ;“FIRST TAB.”

50LPRINT CHR$(ll);“SECOND TAB.”

60LPRINT CHR$(11) ; “THIRD TAB. *’

70LPRINT CHR$(ll);“FOURTH TAB.”

Now, let’s set some vertical tabs of our own. Add these lines to the program:

20LPRINT CHR$(27);“B”;CHR$(lO);CHR$(15);

30LPRINT CHR$(25);CHR$(30);CHR$(O);

(ESC)“B” is the command to set vertical tabs. Like the horizontal tab setting command, tab positions must be defined in ascending order. Our example sets vertical tabs at lines 10, 15,25 and 30. Then the CHR$(ll) in each of the following lines advances the paper to the next vertical tab. The printout is shown below.

FIRST TAB.

SECOND TAB.

THIRD TAB.

FOURTH TAB.

Page 76
Image 76
Star Micronics NB-15 user manual 10 ’ Demo of vertical tabs 40 LPRINT CHR$11 “FIRST TAB.”