help chris
November 4th, 1999, 08:13 PM
I have a few text boxes, each which belong to their own array. I would like to in essense create a 2 dimmensional array having the text boxes below in a top level array, while each one has another set of text boxes in side. In otherwords I have the following:
txtBox0(0), txtBox0(1), txtBox0(2)
txtBox1(0), txtBox1(1), txtBox1(2)
txtBox2(0), txtBox2(1), txtBox2(2)
and I want:
txtBox(0)(0), txtBox(0)(1), txtBox(0)(2)
txtBox(1)(0), txtBox(1)(1), txtBox(1)(2)
etc.
And if that isn't possible, which I don't think it is, but I'd be happy if someone proved me wrong :), Then how about using what I have first above.
and being able to do some thing like:
dim i as integer, j as integer
for j = 0 to 3 step 1
for i = 0 to 3 step 1
txtBox&j(i).text "blah"
next
next
I know that the txtBox&j won't work, but you get my point I hope. Currently i'm creating the text boxes like this:
Load .txtBox0(.txtBox.uBound + 1)
I just need to basically do that double 'for' loop. Any help is most appriciated.
thanks
chris
txtBox0(0), txtBox0(1), txtBox0(2)
txtBox1(0), txtBox1(1), txtBox1(2)
txtBox2(0), txtBox2(1), txtBox2(2)
and I want:
txtBox(0)(0), txtBox(0)(1), txtBox(0)(2)
txtBox(1)(0), txtBox(1)(1), txtBox(1)(2)
etc.
And if that isn't possible, which I don't think it is, but I'd be happy if someone proved me wrong :), Then how about using what I have first above.
and being able to do some thing like:
dim i as integer, j as integer
for j = 0 to 3 step 1
for i = 0 to 3 step 1
txtBox&j(i).text "blah"
next
next
I know that the txtBox&j won't work, but you get my point I hope. Currently i'm creating the text boxes like this:
Load .txtBox0(.txtBox.uBound + 1)
I just need to basically do that double 'for' loop. Any help is most appriciated.
thanks
chris