In MSX BASIC, I'm trying to assign a number to a variable which will be the line number from which the DATA values should be read:
10 LET I = 60 20 RESTORE I 30 READ J:IF J=0 THEN END 40 PRINT J 50 GOTO 30 60 DATA 1,2,3,4,5,0
I expect this to output 1,2,3,4 and 5, each on a line, but instead, I get Undefined line number in 20.
Does RESTORE only accept values, not variables?
Login or register to post comments