Yes, “do” does it. Thank you Ralph and Bob. Richard, I’ve heard that “do” is slow because it must be compiled every time. I am reiterating this possibly hundreds of times, so it is probably much better to combine the arrays into a Big Array?
Peter > On Feb 1, 2017, at 7:16 PM, Bob Sneidar via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Even better! > > Bob S > > > On Feb 1, 2017, at 16:08 , Richard Gaskin via use-livecode > <use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote: > > Whenever you have a collection of variables whose names may be variable, an > array is a natural fit. > > LiveCode supports n-dimensional arrays, so you could use: > > -- Store: > put "something" into tBigArray["1"]["text"] > put "somethingelse" into tBigArray["2"]["text"] > > -- Retrieve: > put tBigArray["1"]["text"] into tSomeVar > put tBigArray["2"]["text"] into tAnotherVar > > > -- > Richard Gaskin > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode