Page 1 of 1

How do I acess an atribute whose name is stored in a var?

Posted: Thu Sep 25, 2008 4:42 pm
by pedrotuga
That is the question.

Like... I want to acess

object.someattribute.subat

but instead of someattribute, I want to a access whatever member a variable content, say atname holds.

Re: How do I acess an atribute whose name is stored in a var?

Posted: Sat Sep 27, 2008 11:09 am
by kaszu

Code: Select all

object[atname].subat