Table 5-12

 

Alignment commands

lm_- _.: --

1(=--4-.1 .--1 -

.

.......1 ,---,

Try this program to see how easy it is.

10‘ Demo of a I igrl ing and centering

20 I.PRINT, CHR$(27) ; “1“ ;~:HR(20)$ ;

30I,PRINT CHR.(27)$ ; “Q”;CHR$(60 ) ;

401.*PRI?ir CHR.(27)$ ; “a”; CHW(0 ) ;

501.PRINT, “THIS LI NE IS LEF’T-–ALIGN~D.“

60LPRINT CHR$(2?) ; “A”;CHR$( ? ) :

70LJ’RINT“TFiIS L,I NE I S CENTERED“.

80LPR1NT CilR.$(27) ; “A”;CHR$(2 ) ;

!?(.)LIWINV“TH1S LINE I S RIGHT-.41ICNED. .

When you run this program, you should get like this:

75

1

Page 83
Image 83
Star Micronics NX-15 user manual 50 1.PRINT, this LI NE is LEF’T--ALIGN~D, ?.LIWINVTH1S Line I S RIGHT-.41ICNED