I would like to know if there's a way to use a variable to refer to a control. For example, if I have a text box named txtFirstName and I want to set the text field to be "John", I would normally do:
Let txtFirstName.Text = "John"
What I would like to do is this, where xxx is some function that forces VB to know that it should treat the variable string as a reference to a control:
Dim strControlName as string
Let strControlName = "txtFirstName.Text"
Let xxx(strControlName) = "John"
Does anyone know if this is possible?
Thanks in advance.
Let txtFirstName.Text = "John"
What I would like to do is this, where xxx is some function that forces VB to know that it should treat the variable string as a reference to a control:
Dim strControlName as string
Let strControlName = "txtFirstName.Text"
Let xxx(strControlName) = "John"
Does anyone know if this is possible?
Thanks in advance.