this[stringValue + "Amt"] if you're trying to do it within the same class.
On Mon, Jan 12, 2009 at 12:28 PM, Manish Jethani
<[email protected]>wrote:

> On Tue, Jan 13, 2009 at 1:51 AM, Eric E. Dolecki <[email protected]>
> wrote:
> > I have forgotten how to do this... I'd like to set some variables like
> this
> > a var exists...
> > zAmt
> >
> > now I'd like to set the value in a method...
> > [ stringValue + "Amt"] = someValue;
> >
> > How do I compose that?
>
> That would be:
>
>  obj[stringValue + "Amt"] = someValue;
>
> where obj is the object that holds the property.
>
> Manish
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 

Cheers,
Nate
----------------------------------------
http://blog.natebeck.net
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to