To simplify typing the column data, you can enter the values in a DATA statement, then use a READ statement in a loop to print it. Here is a model:
.
.
.
30 LPRINT CHR$(27);CHR$(75);CHR$(NDOTS MOD 256); CHR$(FIX(NDOTS/256);
40FOR I = 1 TO NDOTS
50READ C
60LPRINT CHR$(C):
70NEXT I
.
.
.
100DATA 2, 4, 8, 16, 32...........
This method makes it easier to check and modify your data. Using a variable such as NDOTS helps to make sure the amount of data in the program matches the number of columns you have specified.
Cancel Function
ASCII | Decimal | Hexadecimal |
CAN | 24 | 18 |
|
|
|
The cancel code clears the printer buffer. All control codes remain in effect until you give a specific command to change them or turn the printer off, with the exception of SO