Tree Widget: hilitedValue?
brian at milby7.com
Sun Jul 10 17:24:06 EDT 2022
If pPath = “a” and pPath = “b”
Then pArray[pPath] is the same as saying pArray[“a”][“b”]
I’m not sure when it was added. It is relatively recent (7 or 8 I think, but not sure)
Sent from my iPhone
> On Jul 10, 2022, at 4:46 PM, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> wrote:
> On 7/9/22 7:11 PM, Brian Milby via use-livecode wrote:
>> function getValue pArray, pPath
>> split pPath by comma
>> return pArray[pPath]
>> end getValue
> I keep forgetting we can do that. It's cool, but I don't understand how it works. Splitting the path by comma produces a numbered array, and yet the function appears to ignore the numerical keys and return only the element values.
> How come?
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode