Star Micronics NB24-10/15 user manual n One-time horizontal tabs

Models: NB24-10/15

1 133
Download 133 pages 41.98 Kb
Page 88
Image 88
nOne-time horizontal tabs

79

Table 5-7

Horizontal tab commands

Function

Advance to next tab position

Set tabs at nl, n2, etc.

Set tabs every n columns Restore the default tab positions

Control code

CHR$@)

(ESC) “D” CHR$(nl) CHR$(n2) .....

CHWO)

(ESC) “e” 0 CHR$(n)

(ESC) “R” (IBM-P mode only)

nOne-time horizontal tabs

Suppose you need to move to a position across the page, but you only need to do it once. It doesn’t make much sense to set up a tab to use only one time. There is an easier way.

The solution is called a one-time tab. Table 5-8 show the three commands.

Table 5-8

One-time horzontal tabs

Function

 

Control code

One-time horizontal tab of n

(ESC) “f” 0 CHR$(n)

spaces

 

 

 

 

 

Absolute

horizontal

tab

(ESC) “$” CHR$(nl) CHR$(nZ)

 

 

 

(ESC) “\” CHR$(nl) CHR$(nZ)

Relative

horizontal

tab

(except IBM-P mode)

(FS) “\” CHR$(nl) CHR$(azZ)

 

 

 

(IBM-P mode)

The first command in Table 5-8 moves the print head n col- umns to the right. It has the same effect as sending n spaces to the printer.

The absolute horizontal tab command moves the print head to a specified position on the page. The position that you want the print head to move to (measured from the left margin) is specified by the values of nl and n2 in 1/604nch units using the formula nl + n2 x 256.

Try this program to see how this works.

10 ’ Demo of absolute horizontal tabs

20 FOR I=60 TO 70 STEP 2

30 LPRINT I ; “ttttt” ;

Page 88
Image 88
Star Micronics NB24-10/15 user manual n One-time horizontal tabs