Single Point Property Creation/Assignment
Dennis Brown
see3d at writeme.com
Thu Aug 4 10:13:38 EDT 2005
Stephen,
I took a little different approach to using custom properties and
sets to avoid the use of the Do.
I leave the default set as the normal operating mode and access a few
"global" parameters in the normal way: get myParam of object
I create sets to hold other sets of parameters, but I access them all
using array notation: get the custSetArray[myParam] of object
That way I can construct the name "myParam" directly without using a
do command: get the custSetArray[varWithNameOfParam] of object
Dennis
On Aug 4, 2005, at 12:02 AM, Stephen Barncard wrote:
>
> Hi gang,
> I'm creating a central management system for settings using user
> properties.
> I want to use one central routine to access the preferences stack.
>
> To do that, I am working with a handler that creates and sets a
> custom property INSIDE a custom property set - all set at once. I
> got the below code to work.
>
> My question is -- is the use of 'do' the only or best way to
> accomplish the use of variables for assigning property names and
> data? Or am I missing the obvious?
More information about the use-livecode
mailing list