55
When you run this program you should get this:
This line is
This line is ELITE pitch.
This line is PICA pitch (normal).
Line 20 turns on
to pica pitch and line 70 prints the line in pica pitch.
nExpanded print
Each of the print pitches can be enlarged to twice its normal width. This is called expanded print. Try this program to see
how it works:
10 ’ Demo of expanded print |
|
|
|
| |||||
20 | LPRINT | “Demonstration | of | I’; |
|
|
| ||
30 | LPRINT | CHR$(14); |
|
|
|
|
| ||
40 | LPRINT | “EXPANDED”; |
|
|
|
|
| ||
50 | LPRINT | CHR$(20); |
|
|
|
|
| ||
60 | LPRINT | ” | printing. | ” |
|
|
|
| |
70 | LPRINT | “Notice that | ” ; |
|
|
|
| ||
80 LPRINT CHR$(14); |
|
|
|
|
| ||||
90 | LPRINT | “EXPANDED mode” |
|
|
|
| |||
100 | LPRINT |
| “automatically | turns | off | at the | end | ||
| of | a line.” |
|
|
|
|
| ||
Demonstration |
| of EXPANDED |
| printing. | |||||
Notice | that | EXPANDED |
|
| mode |
| |||
automatically |
| turns | off | at | the | end | of a line. |
Expanded print set with CHR$(14) is automatically cancelled at the end of the line. This is convenient in many applications, such as for one line titles. Note that you didn’t need to put an (ESC) in front of the CHR$(14), although (ESC) CHR$(14) works just the same.
You can also cancel one line expanded print before a carriage