I'm learning vb, coming from a Perl background. I want to know how to
reference a form element by using a counter variable in the element's name.
For instance, let's say I have a form with 10 textboxes named textbox1
through textbox 10 and I have a for loop and I want to populate the text in
the textboxes with the numbers 1 through 10 and I want to reference the
textbox names by using the counter, something like this
for x = 1 to 10
textbox(x).text = x
next
what particular characters do I use around the x to tell vb I want it to
interpret the value of x and use it at the end of the form element's name?
Hopefully I'm explaining myself properly.
BTW, if anyone knows perl, it would be the vb equivalent of the { }
characters.
Any help would be greatly appreciated.