11-16-2022, 11:13 PM
(11-16-2022, 11:04 PM)Pete Wrote: This oversight upsets the Continuity Principle.
Code: (Select All)DATA "1,2,3" ' This doesn't works. IDE flags it.
DATA 1,2,3 ' This doesn't run, but the IDE doesn't flag it.
So when Rob put this together, he simply missed a condition. Since the IDE is set up to catch syntax errors before compilation, yes, this should at some point in time be corrected. In therms of priorities, things like this and the IF THEN ELSE anomaly are certainly backseat compared to a memory leak in SCREEN Zero. Oh the horror!!!!
Pete
The reason this isn't flagged by the IDE as an error, is simply because it's not.
Code: (Select All)
For i = 1 To 4
Read a$
Print a$
Next
Data 1,2,3 ' This doesn't run,but the IDE doesn't flag it.
You've got mixed data inside your data stream there -- 2 numeric values and 2 string values. The error you get, happens to be a run-time error because, at run-time, you're trying to read a string into a numeric variable.
Makes perfect sense to me.