EasyManua.ls Logo

Commodore 128 - PRINT USING

Commodore 128
448 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Outputs the data HELLO THERE and the variables A$ and B$
to the printer.
10 OPEN 2,8,2“DATAFILE,S,W
20 PRINT#2,A,B$>C,D
This example outputs the data variables A, B$, C and D to the
disk file number 2.
NOTE: The PRINT# command is used by itself to clear the
channel to a device after outputting via CMD and before closing
the file as follows:
OPEN 4,4
CMD4
LIST
PRINT#4
CLOSE4
See also CMD command.
PRINT USING
Output using format
PRINT[#filenumber,] USING“format list; print list
This statement defines the format of string and numeric items for
printing to the text screen, printer or other device. The format is
put in quotes. This is the format list. Then add a semicolon and a
list of what is to be printed in the format for the print list. The list
can be variables or the actual values to be printed, separated by
commas.
FORMAT STRING USED WITH
CHARACTER NUMERIC
Hash sign (#) X
Plus sign (+) X
Minus sign (-) X
Decimal Point (.) X
Comma (,) X
STRING
X
17-56

Table of Contents

Other manuals for Commodore 128

Related product manuals