Not sure if you can do exactly what you want. How about having a row called text1(1) and so on and then text2(2).
Dont know if this is any help
Or you could do some cacluation, if you had an array like below
Now in your code at run time you can make an array of this control using: load txtMyText(txtMyText.count)
Iterate through your array, using for and next loop, and each time you have a variable, add a textbox and place it in it.
Make sure when you create your instance of the textbox, you specify a position, so they don't all end up in the same place, and also ensure you inlclude a visible=true statement.
On the form create a regular array of 24 textboxes (txtDummy(0) to txtDummy(23)
At the end of the Form Load event assign the dummy array to your 2-dimensional array:
[tt]
For c = 0 To 3
For d = 0 To 5
Set txtMytext(c, d) = txtDummy(d + (6 * c))
Next d
Next c
[/tt]
and you're done!
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'If we're supposed to work in Hex, why have we only got A fingers?'
shalet
Please read faq222-2244 to see why you should keep posts on one subject in one thread. I suggest you reply in this thread and RedFlag the other thread for deletion.
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'If we're supposed to work in Hex, why have we only got A fingers?'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.