Arrays: new and old keys, i
Björnke von Gierke
bvg at mac.com
Thu Sep 11 17:02:56 EDT 2008
On 11 Sep 2008, at 22:49, Trevor DeVore wrote:
> put "some string" into theValue
> put "[people][1][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?
on mouseUp
put "people" into theFirst
put "1" into theSecond
put "Name" into theThird
put "some string" into theArrayA[theFirst][theSecond][theThird]
end mouseUp
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
Bjoernke
--
official ChatRev page:
http://bjoernke.com/runrev/chatrev.php
Chat with other RunRev developers:
go stack URL "http://bjoernke.com/stacks/chatrev/chatrev1.3b3.rev"
More information about the use-livecode
mailing list