Q on Accessing multi-dimension arrays.
brian at milby7.com
Thu Apr 26 10:43:35 EDT 2018
put "answer" into tA["firstkey"]["secondkey"]
put "firstkey" into tPath
put "secondkey" into tPath
On Thu, Apr 26, 2018 at 9:16 AM, Alex Tweedly via use-livecode <
use-livecode at lists.runrev.com> wrote:
> I have a (vague) memory that there is some way to do this ... but can't
> remember and haven't had any luck searching for it ....
> I have a multi-dimension array, say created by
> put "answer" into tArray["firstkey"]["secondkey"]
> Is there some way or format to specify the array elements using the "path"
> of the keys, rather than each one at its own level) ?
> i.e. something like (but obviously not exactly)
> put tArray["firstkey,secondkey"]
> where each item/part of the key is interpreted s the next level in the
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the Use-livecode