Get property value by property name

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Get property value by property name

deniska
Hi, all.

Is there any way to get property value dynamically?
If I have an instance of an object and property name, can I get the value of the property of that instance?
Reply | Threaded
Open this post in threaded view
|

Re: Get property value by property name

Derrell Lipman
On Tue, Jul 10, 2012 at 5:15 PM, deniska <[hidden email]> wrote:
Hi, all.

Is there any way to get property value dynamically?
If I have an instance of an object and property name, can I get the value of
the property of that instance?

You should be able to do:
  var value = obj.get(propertyName) 

Derrell


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Get property value by property name

deniska
Doh, how did I miss that? :)

Thanks.