I am stuck at the stupidest problem - can not figure out how to get variable value. See the code below
5 a(1)=2:b(1)=10:c(1)=100 10 data "a","b","c" 15 restore 10 20 for i=0 to 2 30 read a$ 40 x=... ??? 50 print x 60 next i
I define list of variable names using DATA, each of these variables are arrays. I need to take value of a(1) according to read of first string from data, b(1) according to reading second, etc. What ...??? must be to convert a$ being "a" to value of a(1)?
I have a suspicion that it may simply be impossible at BASIC level. Please advise.
Aangemeld of registreer om reacties te plaatsen