Specifications
309
If the string data is invalid as numeric data, the
READ statement assigns the value
0 to the numeric variable.
• The number of data values stored by the DATA statement must be equal to or
greater than that of variables specified by the
READ statement. If not, a run-time
error occurs.
• To specify the desired
DATA statement location where the READ statement
should start reading data, you use the
RESTORE statement.
Run-time errors:
Reference:
Statement example:
DATA "ABC"
READ c
PRINT c
Output:
Error code Meaning
04h Out of DATA
(No DATA values remain to be read by the READ statement.)
Statements:
DATA and RESTORE
0