sterlingy Active Member Licensed User Longtime User Apr 3, 2013 #1 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
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
agraham Expert Licensed User Longtime User Apr 3, 2013 #2 If you really needed to do this you could do it using the Reflection library, at least for global variables, but in practice why would you need to? Last edited: Apr 3, 2013 Upvote 0
If you really needed to do this you could do it using the Reflection library, at least for global variables, but in practice why would you need to?
Erel B4X founder Staff member Licensed User Longtime User Apr 3, 2013 #3 Another option is to use a Map that maps between the strings and the views. Upvote 0