Sandy, it is funny you mention this as Petr and I discussed this earlier in the week as I asked a similar question.
We can do the same thing in thinBasic in 2 ways.
Use an array.
So instead of:
10 DATA 1,2,3,4,5,6,7,8,9
20 FOR I=1 TO 9
30 READ A(I):NEXT I
We could have:
Dim A() as Long
ARRAY ASSIGN A(1) = 1,2,3,4,5,6,7,8,9
You can also use a string variable, but that makes it a bit more complicated.
I think the array above works pretty nicely to translate from the old Data statement and Read.
Bookmarks