Q on Accessing multi-dimension arrays.

Alex Tweedly alex at tweedly.net
Thu Apr 26 10:16:33 EDT 2018


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 
multi-dimension.

Thanks

Alex.





More information about the Use-livecode mailing list