Q on Accessing multi-dimension arrays.

Brian Milby brian at milby7.com
Thu Apr 26 15:14:47 EDT 2018


tPath can also be thought of as a (proper) list which makes a little more
sense. Mark W would need to answer the why. Not sure I could deduce it from
the source all that quickly.
On Thu, Apr 26, 2018 at 2:08 PM Richard Gaskin via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Mike Bonner wrote:
>
>  > I had no clue you could do that!  Thank you!
>  >
>  > On Thu, Apr 26, 2018 at 8:43 AM, Brian Milby via use-livecode <
>  > use-livecode at lists.runrev.com> wrote:
>  >
>  >> on mouseUp
>  >>    put "answer" into tA["firstkey"]["secondkey"]
>  >>    put "firstkey" into tPath[1]
>  >>    put "secondkey" into tPath[2]
>  >>    put tA[tPath]
>  >> end mouseUp
>
> I'm not entirely sure why it works, but it appears to.
>
> tPath is a flat array - what is the logic of treating flat arrays as
> sequential substitutes for depth queries?
>
> --
>   Richard Gaskin
>   Fourth World Systems
>   Software Design and Development for the Desktop, Mobile, and the Web
>   ____________________________________________________________________
>   Ambassador at FourthWorld.com                http://www.FourthWorld.com
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list