For DATA...
EDITED
Thanks Steve for the heads up on mixed variable types caused by remark statements.
Pete
EDITED
Code: (Select All)
DATA 1,2,3 ' This doesn't run for a numeric read, because 3 ' This.. is viewed as a STRING in the DATA statement. The IDE won't flag it, because it cannot tell if the data is meant to be numeric.
DATA 1,2,3: ' But with a colon added, it will work.
DATA "1,2,3" ' This doesn't works. IDE flags it.
DATA "1,2,3": ' But with a colon added, it does.
DATA 1,2,3 REM This doesn't run for a numeric read, because 3 REM This.. is viewed as a STRING in the DATA statement. The IDE won't flag it, because it cannot tell if the data is meant to be numeric.
DATA 1,2,3: REM But with a colon added, it does.
DATA "1,2,3" REM That doesn't works and the IDE flags it.
DATA "1,2,3": REM But with a colon added, it does.
Thanks Steve for the heads up on mixed variable types caused by remark statements.
Pete