73

When you run the program now it produces this:

The words are now closer together, but still evenly spaced. To reset the default tabs, use the following program:

LPRIN'TCHR$(27);"eO";CHR$O

This command resets the horizontal tabs to every eight co- lumns.

Table 5-7

Horizontal

Function

Advance to next tab position

I Set tabs at nl, n2, etc.

Set tabs every n columns

Set tabs every 8 columns

L

tab commands

Control code

CHR$(9)

K-LOLA’Ecp A “D” CHR$(n1) 1CHR$(n 2) ..... CHR$(O)

<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 shows the three commands.

Table 5-8

One-time horizontal tabs

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

Page 79
Image 79
Star Micronics ND-10/15 user manual LPRINTCHR$27eOCHR$O