AMSTRAD CPC464 User Manual page 183

Cpc464 colour personal computer 64k
Hide thumbs Also See for CPC464:
Table of Contents

Advertisement

PRINT
P R I N T [ # < s t r e a m e x p r e s s i o n > , ] [ < p r i n t l i s t > ] [ < U S I N G
c l a u s e > ] [ < s e p a r a t o r > ]
<print list> is <print item>[<separator><print list>]
<print item> is <expression>
or SPC(<integer expression>)
TAB(<integer expression>)
Write data to a cassette file.
1 0 O P E N O U T " D A T A "
2 0 P R I N T # 9 , " H e l l o "
3 0 C L O S E O U T
Write data to a line printer
1 0 B O B S S A L A R Y
= 2 3 0 0 0 * P I
2 0 P R I N T # 8 , U S I N G " # # # # # # . # # " ; B O B S S A L A R Y
3 0 P R I N T # 0 , B O B S S A L A R Y
RUN
7 2 2 5 6 . 6 3 1 1
Ready
COMMAND: Print data at stream expression using the format specified. See table for format
characters.
Where no formats are specified, BASIC prints in ' free format' , where a comma following the <print
item> will send the printed item to start at the next print ZONE (default to 13). A semi-colon simply
separates the expressions.
SPC(<integer expression>) prints the given number of spaces, defaulting to zero if the
<numeric expression> is less than 1. SPC does not require to be terminated by a comma or semi-
colon - a semi-colon is assumed at all times.
TAB(<integer expression>) prints spaces to move to the given print position, if less than
1, then 1 is assumed.
If the required position is equal to or exceeds the current position, spaces are printed to reach the
required position - if less, then a carriage return is sent, followed by spaces to reach the required
position. TAB does not require termination by a comma or semi-colon.
(Continued. . . . . . ..)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents