A SERVICE OF

logo

3 – 36 Programming
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);
40 FOR I = 1 TO NDOTS
50 READ C
60 LPRINT CHR$(C):
70 NEXT I
.
.
.
100 DATA 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 (double-width), which is cancelled.