Re: Accessing array custom properties

2021-10-26 Thread Craig Newman via use-livecode
Hi. An array variable is just a variable, it is not a property. You cannot “make” one into the other. So, basically, put the pArrayName[pElementName] of button “button” is just syntax that does not exist in the lexicon, for the above reason. Craig > On Oct 25, 2021, at 11:18 PM, Neville Smyt

Re: Accessing array custom properties

2021-10-26 Thread Niggemann, Bernd via use-livecode
> Neville Smythe via use-livecode Mon, 25 Oct 2021 20:20:34 -0700 wrote: > > 4. BUT (annoyingly) this fails, giving an empty result: put the > pArrayName[pElementName] of button “button” > > Why? If 3 works, I would have thought the parser would substitute values for > all variables before

Accessing array custom properties

2021-10-25 Thread Neville Smythe via use-livecode
Is there a logic behind the following? I want the values of a custom property which is an array: to take a specific example the dropShow of button “button” and I want the specific element color Of course I can write: put the dropShadow of button “button” into aa; put aa[color] Conveniently t