sbeltyukov
Technical User
Hi,
If I have textboxes named say txtr1, txtr2, txtr3, etc. etc. I have the first part "txtr" the same for every box but the only thing that changes is the number. I defined an integer x as a counter and I want to populate the text box values as such:
So I want to create a while loop that will loop through until x is less than say 10 and populate the text box whose number corresponds to the number of the counter. So I was thinking something like this:
So if x = 1, then when the program enters into the loop, text box with the name txtr1 will get "some text" as its value, if x = 2 when the program is in the while loop then txtr2 will be populated by "some text", etc. etc. Is this possible?
Thank you!
If I have textboxes named say txtr1, txtr2, txtr3, etc. etc. I have the first part "txtr" the same for every box but the only thing that changes is the number. I defined an integer x as a counter and I want to populate the text box values as such:
Code:
txtr & x = "some text"
So I want to create a while loop that will loop through until x is less than say 10 and populate the text box whose number corresponds to the number of the counter. So I was thinking something like this:
Code:
While (x<10)
txtr & x = "some text"
x = x + 1
Wend
So if x = 1, then when the program enters into the loop, text box with the name txtr1 will get "some text" as its value, if x = 2 when the program is in the while loop then txtr2 will be populated by "some text", etc. etc. Is this possible?
Thank you!