Reference a object thru a variable

Hi,

If I wanted to change the ‘x’ of a object, and a variable contained a the object’s name, how would I change the ‘x’ by using the variable.

Without variable:

myObject.x = 123;

With variable maybe?:

(myVar.text).x = 123;

Any suggestions?

Josh