G
Guest
In vb.net I'm trying to loop through textboxes using variables. If I try the
following, I receive the error "Value of type string cannot be converted to
System.Windows.Forms.Textbox
dim theTextBox as textbox
dim strName as string
dim i as integer
strname = "txtclorderfield" & i & ".text"
thetextbox = strname < this is where the syntax error appears
following, I receive the error "Value of type string cannot be converted to
System.Windows.Forms.Textbox
dim theTextBox as textbox
dim strName as string
dim i as integer
strname = "txtclorderfield" & i & ".text"
thetextbox = strname < this is where the syntax error appears