64

30 FOR I=10 TO 1 STEP -2

40 LPRINT CHRS(27);" ";CHR$(I);

50 LPRINT "This line is added";I;"spaces."

60 NEXT I

70 LPRINT CHRS(27);" ";CHR$(O);

80 LPRINT "This line is Normal space."

90 END

This

line

 

is

added

10 spaces.

This

line

is

added

8 spaces.

This

line

is

 

added

 

6 spaces.

This

line

is

added

!t spaces.

This

line

is

added

2

spaces.

This line is Normal space.

This command can be used to produce micro-justification, which is a method of justifying lines by increasing the space be- tween each character.

n Uni-directional printing

Uni-directional printing means printing in one direction only. Your printernormallyprintswhen theprinthead ismoving in both directions. But once in a while you may have an application such as making table where you are more concerned with how the vertical lines align than with how fast it prints. The printer lets you make this choice. The table below shows the commands for controlling how the printer prints.

Table 5-2

 

Printing direction commands

-

Try this program to see the difference that printing in one direction makes.

10' Demo of uni-directional printing

20 LPRINT CHR$(27);"1";

Page 70
Image 70
Star Micronics NP-IO manual Added Spaces This