Question Variable in Name

CrazyMonkey

New member
Joined
Nov 6, 2011
Messages
1
Programming Experience
1-3
Hello, this is my first time posting here, and I was wondering: Can you have a variable when searching for an object in the game? The user can create textboxes manually, and I want to be able to access them all. I have a variable for the amount of textboxes, but I need to access them. I'm guessing it's be something like ["Msg" & intTextBoxes].Text = "Blah".

Thanks in advance!
 
No, that is not possible. If you name the controls when you create them then you can index the Controls collection of their parent container using that name to retrieve them. Alternatively, just add them to an array or collection and then retrieve them by index.
 
Back
Top