Star Micronics SB-15 user manual Using Horizontal Tabs, Here’s what will print

Models: SB-15

1 128
Download 128 pages 39.39 Kb
Page 69
Image 69

CHAPTER 7

FORMATTING YOUR

L.

OUTPUT

:I*. -

You have probably used the tab and margm features on a typewriter. They make it easier to format the text on a page. SD-lOi15 also has tabs and margins that you can set. But it goes beyond the capabilities of a typewriter because besides having tabs that go across the page, called horizontal tabs, SD-lo/l5 has vertical tabs that go down the page.

c

In this chapter we will discover how to use:

Horizontal tabs

Vertical tabs

Left and right margins

USING HORIZONTAL TABS

When you turn SD-lo/l 5 on there are horizontal tabs set au- tomatically every eight spaces. It’s easy to use these tabs; you just send a CHR$(9) to SD- lo/15 and the print head will move to the next tab position. CHR$(9) is the ASCII code <HT> for horizontal tab.

Try this one line program to demonstrate the use of the default horizontal tabs.

18 'Tabs demo

20 LPRINT "one" CHR$(9) rrtwo" CHR$(9) “three” CHR$(9) "four"

Here’s what will print:

one twothree four

Even though the words are different lengths, they are spaced out evenly by the horizontal tabs.

Page 69
Image 69
Star Micronics SB-15 user manual Using Horizontal Tabs, Here’s what will print