Re: Accessing custom props using array notation

2010-08-19 Thread Peter Brigham MD
On Aug 19, 2010, at 1:05 PM, J. Landman Gay wrote: That's off the top of my head so if I'm wrong, it's because I'm thinking of how it was ten years from now. Sigh. It was all so different before everything changed. Or will change. Nostalgia ain't what it used to be. Or is it "ain't what it

Re: Accessing custom props using array notation

2010-08-19 Thread David C.
> That's off the top of my head so if I'm wrong, it's because I'm thinking of > how it was ten years from now. LOL!!! ...you folks really crack me up... ...and thanks, I especially needed that today and probably will again seven years from yesterday of last month. :-) Best regards, David C. ___

Re: Accessing custom props using array notation

2010-08-19 Thread J. Landman Gay
On 8/19/10 11:38 AM, Devin Asay wrote: Well, shut my mouth! That'll teach me to rely on faulty memory! (I blame space aliens and nano-brain-implants.) This works perfectly: put "state"& tNum into tMyProp > set the text of img "myImg" of me to the tmyProp of img "myImg" Jacque, could I get a

Re: Accessing custom props using array notation

2010-08-19 Thread Devin Asay
On Aug 19, 2010, at 10:25 AM, Kevin Miller wrote: > On 19/08/2010 17:16, "Devin Asay" 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., yo

Re: Accessing custom props using array notation

2010-08-19 Thread Kevin Miller
On 19/08/2010 17:16, "Devin Asay" 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

Re: Accessing custom props using array notation

2010-08-19 Thread Devin Asay
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 > set. True enough, but can you do the opposite? put "state" & 1 into t

Re: Accessing custom props using array notation

2010-08-19 Thread Kevin Miller
On 19/08/2010 16:48, "Devin Asay" wrote: >> 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 > > Thanks Chipp. That works if the custom prop is an array to start with, but my > question is

Re: Accessing custom props using array notation

2010-08-19 Thread Devin Asay
On Aug 19, 2010, at 4:43 AM, Chipp Walters wrote: > 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 Thanks Chipp. That works if the custom prop is an array to start with, but my

Re: Accessing custom props using array notation

2010-08-19 Thread Chipp Walters
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 wrote: > Anyone know if it's possible to access custom properties from an objects > default custom

Accessing custom props using array notation

2010-08-18 Thread Devin Asay
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