
274
If the string data is invalid as numeric data, the READ statement assigns the value 0 to
the numeric variable.
Statement example: DATA "ABC"
READ c
PRINT c
Output:
0
• 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
RunRun
Run-
--
-time errors:
time errors:time errors:
time errors:
Error code Meaning
04h
Out of DATA
(No DATA values remain to be read by the READ statement.)
Reference:
Reference:Reference:
Reference:
Statement example: DATA and RESTORE
Kommentare zu diesen Handbüchern