Anybody please help me ...
Say I have a form and a textbox on it named :
txtSupName (as textBox)
I also have a variable named :
varSubName = "txtSupName" '(as string)
Is it possible to set the textbox's properties by the variable's value ("txtSupName" as string) not by txtSupName as TextBox ?
The clear is:
To set the value of TextBox is:
txtSupName.Text = "Sigit Santosa"
Now if I set its value by the variable:
varSubName.Text = "Sigit Santosa"
(the value of varSubName = "txtSubName"
of course the error will appear.
So, how the variable sets the properties can possible ?
(I think I can do this in FoxPro by '&' (macro substitution) )
Thank you!
Say I have a form and a textbox on it named :
txtSupName (as textBox)
I also have a variable named :
varSubName = "txtSupName" '(as string)
Is it possible to set the textbox's properties by the variable's value ("txtSupName" as string) not by txtSupName as TextBox ?
The clear is:
To set the value of TextBox is:
txtSupName.Text = "Sigit Santosa"
Now if I set its value by the variable:
varSubName.Text = "Sigit Santosa"
(the value of varSubName = "txtSubName"
of course the error will appear.
So, how the variable sets the properties can possible ?
(I think I can do this in FoxPro by '&' (macro substitution) )
Thank you!