
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QuickBASIC 3.0 - <b>lprint output to lpt1:</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LPRINT Output to LPT1:
LPRINT [exprlist] [; | ,]
Prints one or more numeric or string expressions at LPT1:.
exprlist Numeric and/or string expressions to print. Each
expression must be separated from the one after it by
either a comma or a semicolon.
; If included at the end of the statement, suppresses the
usual carriage return and line feed.
----------------------------------------------------------------------
Notes: LPRINT with no argument sends a carriage return-line feed
pair.
QuickBASIC divides the output field into zones of 14
character positions. If an expression is followed by a
comma, QuickBASIC prints the next expression at the
beginning of the next zone. If an expression is followed
by a semicolon or space character, QuickBASIC prints the
next expression directly after the previous one.
If the last expression in the list to be displayed is
followed by a comma, a semicolon, SPC, or TAB, QuickBASIC
spaces appropriately and suppresses the carriage return-
line feed pair. Otherwise, QuickBASIC issues a carriage
return and line feed after executing an LPRINT statement.
QuickBASIC assumes a maximum line length of 80 characters,
unless a different value has been specified by means of a
WIDTH "LPT1:" statement. QuickBASIC sends a carriage
return-line feed pair when the maximum line length has
been reached. Therefore, for example, if you LPRINT an 80-
character string (and do not follow the string expression
with a semicolon), you will get two carriage return-line
feed pairs.
See Also: PRINT
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson