Dynamic scripted nested array keys?
paul at researchware.com
Sat Apr 24 11:27:43 EDT 2021
On 4/24/2021 9:31 AM, Brian Milby via use-livecode wrote:
> I guess I should reply to myself and say why this works. At some point the
> feature was added that you could use an array as an index into an array.
> The format is a one based ordered array of keys. So tPath is the first
> level key, tPath is the second level, etc. If you wanted to get
> tTree["one"]["two"] then tPath="one" and tPath="two" so you could
> just get tTree[tPath]. Since comma is the default path delimiter (which
> can be changed), you can use split to turn a path list into a path array.
I never heard of this! Thanks.
p.s I can not find any reference to this 'feature' in the 9.6.2rc5
dictionary. Do you know if this is documented anywhere?
More information about the use-livecode