Okay, I'll spare all the details because I'm REALLY not good at explaining them, but let's say I have a string of code, such as...

objectName.location = (x, y)

...but I need to take the name of an object, which is stored in a variable, and execute that same line of code using the name stored in the variable.

For instance, let's say the name "ObjectOne" was stored in variable "objectName", and I wanted to run the code:

ObjectOne.location = (x, y)

However, the name stored in "objectName" could be anything, so simply typing out the above code would not work, I need to somehow execute the same code, but using the variable to do it with whatever the name of that object might be:

(name stored inside variable "objectName").location = (x, y).

but typing "objectName.location = (x, y)" does not work. Does anyone know another way to solve this problem?