Storing an Array as a Custom Property
kray at sonsothunder.com
Fri Oct 1 23:15:23 CDT 2010
> Instead the simplest I've found is this:
> on mouseUp
> put "gaskin" into tPropSet
> put "richard" into tProp
> set the customPropertySet of me to tPropSet
> set the tProp of me to "Howdy!"
> end mouseUp
> Is there a way to make that a one-liner using array notation?
The only way I can see to do it is with "do"; and maybe use merge to make it
a bit cleaner:
put "gaskin" into tPropSet
put "richard" into tProp
put "Howdy!" into tVal
do merge("set the [[tPropSet]][ [[tProp]] ] of me to tVal")
Note that you need to have a spaces around [[tProp]] otherwise you get an
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode