PDA

View Full Version : Object property from string



AlexWD
February 16th, 2010, 05:05 PM
Is there an easy way that I can get the property of object from a string of the name of that property? For example say I have the object char, and a string "x" how can I get the value of char.x?

_kp
February 16th, 2010, 05:07 PM
x = "x"
char[x]

AlexWD
February 16th, 2010, 06:12 PM
Thanks a lot!