| ?OUT OF DATA ERROR | Reference/BASIC Error Messages
This error occurs when a READ statement is executed after all values in DATA statements have been already read, or if there are no DATA statements at all in a program.
To re-read DATA statements, use the RESTORE statement.
In most cases, this error is caused indirectly by errors elsewhere in the program, such as READ statements nested within too many FOR loops, or DATA statements that are either misspelled, missing or wrongly entered.
10 FOR A = 1 TO 5:READ B(A):NEXT 20 DATA 1,2,3,4 The error will occur in this program, as the FOR loop will execute the READ statement 5 times, but there are only 4 DATA items. The error may be corrected either by reducing the number of FOR loops to 4, or by adding a 5th DATA item
13 |
| |
Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon |