40LPRINT CHR$(27);"\";CHR$(I*2O);CHR$(O);

50LPRINT "Horizontal";

60LPRINT CHR$(27);"\";CHR$(I*lO);CKR$(O);

70 LPRINT "Tab . '

80NEXT I

90 END

Relative

Horizontal

Tab.

Relative

Horizontal

Tab.

Relative

Horizontal

Tab.

nVertical tabs

Vertical tabs have the same kinds of uses that horizontal tabs do - they just work in the other direction. Horizontal tabs allow you to reach a specific column on the page no matter where you start from. Vertical tabs are the same. If you have a vertical tab set at line 20, a vertical tab (or (VT)) will move you to line 20 whether you start from line 5 or line 19.

L

Vertical tabs are notset at the power-on default. If you send a CHR$(ll) which is the ASCII code for (VT) before we have set

c.

up tabs, the command advances the paper only one line. Enter this program to see how this works.

i

10

’ Demo

of vertical

tabs

 

 

40

LPRINT

CHR$(ll);"FIRST

 

TAB."

L

50

LPRINT

CHR$(ll);"SECOND

TAB."

 

60

LPRINT

CHR$(ll);"THIRD

 

TAB."

I.

70 LPRINT CHR$(ll);"FOURTH

TAB."

 

 

 

 

 

i

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

 

to the program:

i

 

L

 

 

20 LPRINT CHR$(27);"B";CHR$(lO);CHR$(l5);

i.

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

L

I

(ESC) “B” is the command horizontal tab setting command,

to set vertical tabs. Like the tab positions must be defined

F

Page 90
Image 90
Star Micronics NB24-10/15 user manual To the program