Accessing custom props using array notation

Kevin Miller kevin at runrev.com
Thu Aug 19 12:25:50 EDT 2010


On 19/08/2010 17:16, "Devin Asay" <devin_asay at byu.edu> wrote:

> True enough, but can you do the opposite?
> 
> put "state" & 1 into tPropName
> put the tPropName of image "myImg" into foo
> 
> Unless memory fails, you can't do that--I've tried it; i.e., you can't
> dynamically build property names to access existing custom props.
> 
> I would be love to be proven wrong. ;-)

Well it should work and it does here.

Kind regards,

Kevin

Kevin Miller ~ kevin at runrev.com ~ http://www.runrev.com/
RunRev - Software construction for everyone





More information about the use-livecode mailing list