Format
LPRINT printobject [;]
Description
This statement is used to send the contents of printobject to an attached
printer. "printobject" can be any valid ASIC datatype: integer, string,
or decimal number. Optionally, a ";" can be included with this statement
to suppress a carriage return/line feed which ASIC normally also sends to
the printer following each LPRINT. This can be used to string several
printobjects together on a single print line.
Example
A=12345
LPRINT "The value of A is: ";
LPRINT A
After execution of these statements the printer would print:
The value of A is: 12345
Comments
Note that if the printer is not "online" that DOS will issue a message to
"Abort, Retry, or Ignore". This could overwrite a portion of the program
display, unless not planned for.
Note also, that some printers do not begin printing until they receive a
carriage return/line feed sequence. |