Programmatically changing cRevStandaloneSettings was [Q on Accessing multi-dimension arrays.}

Brian Milby brian at milby7.com
Thu Apr 26 11:34:34 EDT 2018


The comma in a key is the old way to get multi-dimensional arrays. That is
how the standalone keys are formed.

The blank key thing is due to an issue with the tree view handling keys
with commas.
On Thu, Apr 26, 2018 at 9:47 AM Ralph DiMola via use-livecode <
use-livecode at lists.runrev.com> wrote:

> This dovetails into some weirdness I am seeing. I'm trying to change the
> standalone settings Custom property group cRevStandaloneSettings. I want to
> programmatically fill in the mobile icons/splash pages. The android key has
> the expansion triangle but all that's there is one blank key. But the more
> interesting thing is the keys below it are in the format like Alex is
> asking about (firstkey,secondkey). When you click on one of the keys the
> value is not there. The value is to the right of the key. I can't make
> sense of this. What am I missing?
>
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdimola at evergreeninfo.net
>
>
> -----Original Message-----
> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On
> Behalf Of Alex Tweedly via use-livecode
> Sent: Thursday, April 26, 2018 10:17 AM
> To: How to use LiveCode
> Cc: Alex Tweedly
> Subject: Q on Accessing multi-dimension arrays.
>
>
> 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.
>
>
> _______________________________________________
> 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
>
>
> _______________________________________________
> 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