Table 9-2 Left And Right Margin Commands - Star Micronics Radix User Manual

Table of Contents

Advertisement

92
Radix User's Manual
once they are set all the printing is done between them. The com-
mands to set the margins are given in the following table:
-.
Try setting Radix's margins with this program:
10 'Demo margins.
20 GOSUB 70
30 LPRINT CHR$(27) "Mlt CHR$(la) ; 'Left margin = 18.
40
LPRINT CHR$(27) "Qvt CHR$('I@) ; 'Right margin = 70.
50 GOSUB 70
60
END
70 FOR I = 1 TO 80
80 LPRINT "X" ;
90
NEXT I
100 LPRINT
110 RETURN
The first thing that this program does is to branch to the sub-
routine that starts in line 70. This subroutine prints 80 X's in a
row. The first time that the subroutine is used, all the X's fit in one
line. Then line 30 sets the left margin to
10,
and line 40 sets the
right margin to 70. Once again the subroutine is used, but this
time the X's won't all fit on one line since there is now only room
for 61 characters between the margins. (There's room for 61
(instead of 60) characters because you can print in both the first
and last column that you name.)
Run the program. The results will look like this:
-.
.-
-
-

Advertisement

Table of Contents
loading

Table of Contents