Accessing custom props using array notation
devin_asay at byu.edu
Thu Aug 19 12:16:31 EDT 2010
On Aug 19, 2010, at 10:00 AM, Kevin Miller wrote:
> Can't you do something like this:
> put "xyz" into tVar
> set the tVar of btn 1 to "a"
> You'll end up with a property called xyz that contains "a" in the default
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. ;-)
Humanities Technology and Research Support Center
Brigham Young University
More information about the Use-livecode