translate string to variable name

sterlingy

Active Member
Licensed User
Longtime User
Is it possible to take the contents of a string, such as "blockC" and have it treated as a variable name, like this:

bitmapName = "blockC"

myImage.setbackground(bitmapName)

I know the above code doesn't work, I'm just trying to illustrate my objective.

-Sterling
 
Top