Window Swap; Write - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

WINDOW SWAP
WIN D 0 W SW A P
<stream expression> , <stream expression>
10 MODE 1:INK 1,24:INK 2,9:INK 3,6
20 WINDOW 21,40,13,25:PAPER 3
30 WINDOW #1,1,20,1,12:PAPER #1,2
40 CLS:PRINT " window number 0"
50 CLS #1:PRINT #1," window number 1"
60 LOCATE 1;6
70 PRINT" red window (0)";SPC(2)
80 LOCATE #1,1,6
90 PRINT #1," green window
(1)"
100 FOR t=1 TO 1000:NEXT
110 WINDOW SWAP 0,1:GOTO 60
run
COMMAND: Swaps the text window specified in the first <stream expression> with
that specified in the second <stream expression>.
Both <stream expression>s must be specified, and in this case should NOT be preceded
by a
#
stream director.
The command may be used to re-direct messages produced by BASIC,which are
normally always sent to stream
#
0.
Further information concerning windows will be found in part 2 of the chapter
entitled 'At your leisure .... '.
Associated keywords:
WIN D 0 W
WRITE
W R I T E [# <stream expression> ,][ <write list>]
10 REM write variabLes onto disc
20 INPUT "give me a number variabLe";a
30 INPUT "give me a string variabLe";a$
40 OPENOUT "datafiLe"
50 WRITE #9,a,a$
60 CLOSEOUT:PRINT "Data saved onto disc"
run
COMMAND: Writes the values ofthe items in the <write list> to the stream specified
in the <stream expression> . Items written will be separated by commas; strings will be
enclosed by double-quotes.
Chapter 3 Page 90
Complete List of Keywords

Advertisement

Table of Contents
loading

Table of Contents