Accessing custom props using array notation

Chipp Walters chipp at chipp.com
Thu Aug 19 06:43:07 EDT 2010


Devin,

Put the custom prop into an array var, then you can access the contents.

put the uMyArray of btn "test" into tArray
put tArray["prop1"] into tVar

On Wednesday, August 18, 2010, Devin Asay <devin_asay at byu.edu> wrote:
> Anyone know if it's possible to access custom properties from an objects default custom property set using array notation? This is easy to do for custom property sets you create yourself.
>
> set the myPropSet["prop1"] of btn "myBtn" to "foo" -- works
>
> But I can't figure out if you can do the same thing with the default set:
>
> put the customKeys["prop1"] of img "myImg" into "bar" -- doesn't work
>
> If this could be done it would be nice for constructing custom property names dynamically when access custom props, as in a sequence of prop names like prop1, prop2, prop3, etc.
>
> Devin
>
>
> Devin Asay
> Humanities Technology and Research Support Center
> Brigham Young University
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list