How can we dynamically create variable names from changing value "x" on a loop?

dunbarx dunbarx at aol.com
Sun Nov 6 15:08:51 EST 2016


Hi.

Arrays are so new_fashioned.

But do you mean something like this, from the stone age, that creates
variables on the fly, in this case with 2X the value of an index?

on mouseUp
   repeat with y = 1 to 10
      do "put y * 2 into onTheFlyVar" & y
   end repeat
end mouseUp

Craig





--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-can-we-dynamically-create-variable-names-from-changing-value-x-on-a-loop-tp4710128p4710142.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the Use-livecode mailing list