TRS-80 MODEL III
LPRINT
This command
or
statement allows you to output information to the Line Printer.
Forexample,
LPRINT A will list the value
of
A to the line printer. LPRINT can also be
used with all the options available with
PRINT except
PRINT
@.
Examples:
LPRINT variable
or
expression lists the variable
or
expression to the line printer.
LPRINT USING prints the information to the line printer using the format specified.
LPRINT TAB will move the line printercarriage position to the right as indicated by
the
TAB expression.
Example:
10
LPRINT TAB
(5)
"NAME" TAB
(30)
"ADDRESS" STRING$(63,32) "BALANCE"
will print NAME at column
5,
ADDRESS at column 30, and BALANCE at column 100.
See
PRINT.
PRINT
#-1,
item list
Prints the values
of
the specified variables onto cassette tape. (Recorder must be
properly connected and set in Record mode when this statement is executed.)
Example:
890
Ai =
-30.334:
8$
= "STRING-VALUE"
900
PRINT
#-1,
Ai,
B$,
"THAT'S
ALL"
910
END
This stores the current values
of
A1and
B$,
and also the string-literal '
'THAT'S
ALL".
The
values
may
be input from tape laterusing the INPUT
#-1
statement. The
INPUT #
-1
statement must be identical to the PRINT #
-1
statement
in
terms
of
number
and type ofitems in the PRINT
#-lIINPUT
lists. See
INPUT
#.1.
Special Note:
The values represented in item list must not exceed 248 characters total; otherwise
all characters after the first 248 will be truncated. Forexample,
PRINT
#-1,
A#,
B#,
C#,
D#,
E#,
F#,
G#,
H#,
1#,
J#,
A$
will probably exceed the maximum
record length
if
A$ is longerthan about 75 characters.
If
you have a lengthy list, you
should break it up into two
or
more
PRINT#
statements.
3/12