EasyManua.ls Logo

AMSTRAD CPC464 - Page 145

AMSTRAD CPC464
249 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...
EOF
EOF
PRINT EOF
-1
FUNCTION: Tests to see if the cassette input is at the end of the file. Returns –1 (true) at the end,
otherwise 0 (false).
Associated keywords: OPENIN
ERASE
ERASE list of; <variable name>,
ERASE A,B%
COMMAND: When an array is no longer required, it may be ERASEd and the memory used be
reclaimed ready for other use.
Associated keywords: DIM
ERR
ERL
ERR
ERL
10 CLS
20 ON ERROR GOTO 1000
30 DATA SALLY,EMMA,JOANNE,HELEN,GEMMA
40 READ A$
50 PRINT A$
60 GOT0 40
70 REM error detection starts here
1000 IF ERR=4 THEN PRINT "I have spotted
a DATA EXHAUSTED error!"
1010 IF ERL<70 AND ERL>20 THEN PRINT
ā€œ. . . . .in lines 30-60"
1020 END
VARIABLES: These variables are used in error handling subroutines to discover the error number
and line where the error occured. See the error message listing in Appendix VIII.
Associated keywords: ON ERROR, ERROR

Table of Contents

Other manuals for AMSTRAD CPC464

Related product manuals