[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
LPRINT Output to LPT1:
LPRINT [exprlist] [;]
Prints one or more numeric or string expressions to 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.
Turbo Basic divides the output field into zones of 14
character positions. If an expression is followed by a
comma, Turbo Basic prints the next expression at the
beginning of the next zone. If an expression is followed
by a semicolon or space character, Turbo Basic 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, Turbo Basic
spaces appropriately and suppresses the carriage return-
line feed pair. Otherwise, Turbo Basic issues a carriage
return and line feed after executing an LPRINT statement.
Turbo Basic assumes a maximum line length of 80
characters, unless a different value has been specified by
means of a WIDTH "LPT1:" statement. Turbo Basic 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:
LPRINT USING
PRINT
WIDTH
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson