Easy Question (I Think) regarding accessing object properties
Posted on 2006-06-17
I have a button created existing on a form
I can access the button using the following...
form.button.name = "name"
form.button.text = "text"
and so on.
What I would like to do is give the button a name...lets say btnExample so now the button is called btnExample. I can access the button by:
form.btnExample.text = text
But what if I wanted to store btnExample in a variable lets say
Dim buttonName = "btnExample"
and then access the contents of that buttons text property using the name of the button stored in the variable...How would one do that.
For example: I would like to be able to type form.(variableName).text = "text"
Tried finding example of this, etc but not having any luck.