Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 823

Getting Started with LiveCode - Complete Beginners • Re: Custom Properties and nested arrays

$
0
0
Hi Al,

using your array for my example:

CODE:

...## Get a value:answer the animals["dogs"]["rufus"] of this stack## -> chum...## Set a valueset the animals["dogs"]["rufus"] of this stack to "fido"...## Create a new key and value:set the animals["dogs"]["pluto"] of this stack to "your name for pluto here..."...
See, the only "trick" is to use square brackets.

Hint:
I always use a c as a "prefix" for custom properties, so I can recognize them from afar :-) -> the cAnimals of this stack

Best

Klaus

Statistics: Posted by Klaus — Wed May 08, 2024 10:45 am



Viewing all articles
Browse latest Browse all 823

Trending Articles