Arrays: new and old keys, i
Björnke von Gierke
bvg at mac.com
Thu Sep 11 16:02:56 CDT 2008
On 11 Sep 2008, at 22:49, Trevor DeVore wrote:
> put "some string" into theValue
> put "[people][name]" into theKey ## assume you didn't know the
> full path to the key in advance.
> put "put theValue into theArrayA" & theKey into theDo
> do theDo
I'm not sure I understand the problem here, what prohibits the use of
the following way to achieve the above?
put "people" into theFirst
put "1" into theSecond
put "Name" into theThird
put "some string" into theArrayA[theFirst][theSecond][theThird]
Besides less readability, more lines of code, etc. of course. Still if
you don't know what the keys will be beforehand, then you'll have them
individually in vars anyway, right?
Probably not understanding the problem correctly
official ChatRev page:
Chat with other RunRev developers:
go stack URL "http://bjoernke.com/stacks/chatrev/chatrev1.3b3.rev"
More information about the use-livecode