If pPath[1] = “a” and pPath[2] = “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)

Thanks,
Brian

Sent from my iPhone

> On Jul 10, 2022, at 4:46 PM, J. Landman Gay via use-livecode 
> <use-livecode@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         |     jac...@hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to