Cursor; Data - AMSTRAD cpc 6128 User Instruction

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

Advertisement

CURSOR
CUR S 0 R [<system switch>][ , <user switch>]
10 CURSOR 1
20 PRINT "question?";
30 a$=INKEY$:IF a$="" THEN 30
40 PRINT a$
50 CURSOR 0
run
COMMAND: Sets the system switch or the user switch to the cursor, on or off. The
<system switch> and <user switch> parameters must be either 0 (oft) or 1 (on). In the
above
INK E
Y $ command, where the cursor is not normally visible, the cursor has
been turned on by the <system switch> setting of 1 (in line 10).
The cursor is displayed whenever both the <system switch> and the <user switch> are
on (1). The <system switch> is automatically turned on for the command
IN PUT,
but
is turned off for I
NKEY$.
It is recommended that the cursor be turned offwhen printing text to the screen.
Either switch parameter may be omitted, but not both. If a switch parameter is
omitted, that particular switch state is not changed.
Associated keywords: L 0 CAT E
DATA
D A T A <list of: <constant>
10 FOR x=1 TO 4
20 READ name$,surname$
30 PRINT name$;" ";surname$
40 NEXT
50 DATA Hi Lda,Ogden,Bet,Lynch
60 DATA Rita,Fairclough,Mavis,Ri Ley
run
COMMAND: Declares constant data for use within a program. Data may be read into
the variable by the REA D command, after which the 'pointer' moves on to the next
item in the D A T A list. The RES TOR E command may be used to move the pointer to a
specified D A T A position.
Further information concerning data will be found in part 2 of the chapter entitled
'At your leisure .... '.
Associated keywords: REA D, RES TOR E
Chapter 3 Page 12
Complete List of Keywords

Advertisement

Table of Contents
loading

Table of Contents