Re: Q on Accessing multi-dimension arrays.

2018-04-27 Thread Ali Lloyd via use-livecode
de > Sent: Friday, April 27, 2018 10:51 AM > To: How to use LiveCode > Cc: Bob Sneidar > Subject: Re: Q on Accessing multi-dimension arrays. > > Fettling! I'm going to start using that! > > fet·tle > ˈfedl/ > verb > gerund or present participle: fettling

RE: Q on Accessing multi-dimension arrays.

2018-04-27 Thread Ralph DiMola via use-livecode
lf Of Bob Sneidar via use-livecode Sent: Friday, April 27, 2018 10:51 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Q on Accessing multi-dimension arrays. Fettling! I'm going to start using that! fet·tle ˈfedl/ verb gerund or present participle: fettling • trim or clean

Re: Q on Accessing multi-dimension arrays.

2018-04-27 Thread Bob Sneidar via use-livecode
Fettling! I'm going to start using that! fet·tle ˈfedl/ verb gerund or present participle: fettling • trim or clean the rough edges of (a metal casting or a piece of pottery) before firing. Apparently appropriate as well. Pronounced like feddle, likely where we get our fiddle with. And

Re: Q on Accessing multi-dimension arrays.

2018-04-27 Thread Ali Lloyd via use-livecode
Which reminds me - the tree view widget should probably use the list form of a path directly instead of fettling with a path delimiter property On Fri, Apr 27, 2018 at 12:26 AM Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote: > Thanks Brian, Bernd, and everyone else. > > When

Re: Q on Accessing multi-dimension arrays.

2018-04-26 Thread Alex Tweedly via use-livecode
Thanks Brian, Bernd, and everyone else. When I first saw it (in the form described in Brian's email), I thought - hmmm, not sure when anyone would use that. Then I saw an example using split (as described in Bernd's email), and thought - maybe I can use that some day. :-) Well - the day has

Re: Q on Accessing multi-dimension arrays.

2018-04-26 Thread Richard Gaskin via use-livecode
Dick Kriesel to the rescue again! Thanks for that background. Comforting to know it's not merely an anomaly, but a well-considered design decision. It's such a cool thing to be able to do. It will change many algos here... -- Richard Gaskin Fourth World Systems Dick Kriesel wrote: On Apr

Re: Q on Accessing multi-dimension arrays.

2018-04-26 Thread Dr. Hawkins via use-livecode
On Thu, Apr 26, 2018 at 11:58 AM, Mike Bonner via use-livecode < use-livecode@lists.runrev.com> wrote: > I had no clue you could do that! Thank you! > Yeah, but if you're doing any level of *serious* matrix multiplication, there's no substitute for Fortran: it's a basic feature of the language.

Re: Q on Accessing multi-dimension arrays.

2018-04-26 Thread Mark Wieder via use-livecode
On 04/26/2018 10:17 AM, Niggemann, Bernd via use-livecode wrote: > If I understand correctly that you want then > > - > put "style,hidden" into tPathToHidden > split tPathToHidden by comma > > put "true" into tScriptA[i][tPathToHidden] > > lets you

Re: Q on Accessing multi-dimension arrays.

2018-04-26 Thread Dick Kriesel via use-livecode
> On Apr 26, 2018, at 12:14 PM, Brian Milby via use-livecode > mailto:use-livecode@lists.runrev.com>> wrote: > > tPath can also be thought of as a (proper) list which makes a little more > sense. Mark W would need to answer the why. The following excerpts provide a quote from Mark W: > On Mar

Re: Q on Accessing multi-dimension arrays.

2018-04-26 Thread Richard Gaskin via use-livecode
As long as this (undocumented?) anomaly exists, might as well put it to good use - this is a step toward xPath-like functionality for array queries: on mouseUp -- Load array: put "something" into tA["this"]["is"][1]["path"] -- put PathQuery("this/is/1/path", tA) end mouseUp function

Re: Q on Accessing multi-dimension arrays.

2018-04-26 Thread Brian Milby via use-livecode
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@lists.runrev.com> wrote: > Mike Bonner w

Re: Q on Accessing multi-dimension arrays.

2018-04-26 Thread Richard Gaskin via use-livecode
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 "second

Re: Q on Accessing multi-dimension arrays.

2018-04-26 Thread Mike Bonner via use-livecode
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@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

Re: Q on Accessing multi-dimension arrays.

2018-04-26 Thread Richard Gaskin via use-livecode
Alex Tweedly wrote: > 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

Re: Q on Accessing multi-dimension arrays.

2018-04-26 Thread Niggemann, Bernd via use-livecode
Alex Tweedly wrote: >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) ? If I understand correctly that you want then - put "style,hidden" into tPathToHidden split tPathToHidden by comma put

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

2018-04-26 Thread Brian Milby via use-livecode
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 > >

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

2018-04-26 Thread Ralph DiMola via use-livecode
ector Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@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

Re: Q on Accessing multi-dimension arrays.

2018-04-26 Thread Brian Milby via use-livecode
on mouseUp put "answer" into tA["firstkey"]["secondkey"] put "firstkey" into tPath[1] put "secondkey" into tPath[2] put tA[tPath] end mouseUp On Thu, Apr 26, 2018 at 9:16 AM, Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote: > > I have a (vague) memory that there i

Q on Accessing multi-dimension arrays.

2018-04-26 Thread Alex Tweedly via use-livecode
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 th