EasyManua.ls Logo

Radio Shack TRS-80 Model 4 - Page 278

Radio Shack TRS-80 Model 4
418 pages
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...
RESTORE
is illegal, since the result would be to move the third line of the
program ahead of the second.
In
this case,
an
"Illegal function
call" error occurs, and the original program is left unchanged.
2.
RENUM will not create new line numbers greater than 65529.
Instead,
an
"Illegal function call" error occurs, and the original
program
is
left unchanged.
3.
If
an
undefined line number is used inside your original program,
RENUM prints a warning message, Undefined line XXXX
in
YYYY", where XXXX
is
the original line number reference and
YYYY
is
the original number of the line containing XXXX. Note that
RENUM renumbers the program
in
spite of this warning message.
It does not change the incorrect line number reference, but it does
renumber YYYY, according to the parameters
in
your RENUM
command.
IRESTORE
[line]
Statement I
THIS IS
THE
FIRST
ITEM
Restores a program's access to previously-read DATA statements.
This lets your program re-use the same DATA lines.
If
line
is
specified, the next READ statement accesses the first item
in
the specified DATA statement.
Sample Program
160
READ
)($
170
RESTORE
180
READ
Y$
180
PRINT
}($,
Y$
200
DATA
THIS IS
THE
FIRST ITEM,
AND
THIS
IS
THE
SECOND
When this program is run,
THIS IS
THE
FIRST
ITEM
is printed on the display. Because of the RESTORE statement
in
line
170, the second READ statement starts over with the first DATA item.
2-152

Other manuals for Radio Shack TRS-80 Model 4

Related product manuals