
I.- !:
The form feed (CHR$( 12)) in line 50 caused the printer to move to the top of a new page before printing the last two lines.
A note to
CHANGING THE PAGE LENGTH
You may have some computer forms that you wish to use with
| Table |
|
| |
Form | length | commands |
|
|
Function | Mode | Control code |
| |
Set the page length to n lines | STAR | <ESC> | “C” CHR$@) | |
| IBM | <ESC> | “c” | CHR!$(n) |
Set the page length to n inches | STAR | < ESC > | “c” | CHR$(O) CHR!$(n) |
| IBM | < ESC > | “c” | CHR$(O) CHR$(n) |
.-
-
-
-
-
-
-
_-
-
Let’s set up a 7 inch high form length, which is typical of many computer checks. The following program will do it.
10 'Demo variable form lengths.
241LPRINT CHR$(27) "C" CHR$(@) CHR$(7) ; 'Form length inches.
34)LPRINT "Pay to the order of:”
40 LPRINT CHR$(12) ; 'Form feed.
50 LPRINT "Pay to the order of:"
-
7
-
-
This program should print “Pay to the order of:” twice, and | |||||||||
| |||||||||
they should be 7 inches apart. Line 20 sets the form length to 7 | .. | ||||||||
inches. After line 30 prints, line 40 sends a form feed advance | |||||||||
| |||||||||
the paper | to the | top of | the next | form. | Line 50 then | prints | its | - | |
message. |
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
| ||
After you have run this program, turn off the printer and adjust | - | ||||||||
the top of | form | position. | When | you | turn the printer | back | on | ||
the page length will be reset to its normal setting (usually 11 |
| ||||||||
inches). |
|
|
|
|
|
|
| - |
56