Dynamic scripted nested array keys?
Paul Dupuis
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[1] is the first
> level key, tPath[2] is the second level, etc. If you wanted to get
> tTree["one"]["two"] then tPath[1]="one" and tPath[2]="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
mailing list