Writing Your Own Print Programs - OKIDATA OKIMATE 20 Handbook

Hide thumbs Also See for OKIMATE 20:
Table of Contents

Advertisement

Writing
Your
Own Print Programs
In
case you'd like to write your own print programs, here we'll describe some of the basics.
What You
Do
1.
Start
each
print program with an OPEN state-
ment, like this:
10 OPEN 3,4
L
device number
logical file number
.___ ____ line number
2.
Next
enter
the PRINT# statement:
What Appears/What Happens
This statement opens a channel to the printer.
The second number after OPEN identifies the de-
vice the channel is opened to. OKIMATE is identi-
fied by 4. Other devices might be a disk drive or a
a cassette tape. If you have two printers, assign
one device number 4, the other device number 5.
The first number after OPEN, the logical file num-
ber (any number from 0 to 255), identifies the
channel.
20 PRINT#3, "OKIMATE PRINTS WHAT'S WITHIN THE QUOTES"
46
The number after PRIN
T#
must be identical with
the logical file number used in the OPEN state-
ment.

Advertisement

Table of Contents
loading

Table of Contents