Using the following code:
Private Sub Form_Load
dim i as integer
for i = 1 to 7
load txt1(i)
txt1(i).left = txt1(i-1).left + txt1(i-1).width
txt1(i).top = txt1(i-1).top
txt1(i).visible = true
next i
end sub
I am trying to load 20 rows of text boxes loading 7 text boxes per row. The first column of boxes are already on the form (8 boxes per row). Each row of boxes is an array 0 thru 7. I can load the first row but can't figure out how to load the succeding rows whose text boxes start with
txt2(0), txt3(0), txt4(0), etc. In the code I have to change txt1 to txt2 etc. I am trying to avoid having to write this code for each row but instead iterate thru txt1, txt2, etc. But How??
Any help is appreciated.
Thank You,
TNN, Tom
TNPAYROLL@AOL.COM
[sig]<p>TOM<br><a href=mailto:WWW.TNPAYROLL@AOL.COM>WWW.TNPAYROLL@AOL.COM</a><br>[/sig]
Private Sub Form_Load
dim i as integer
for i = 1 to 7
load txt1(i)
txt1(i).left = txt1(i-1).left + txt1(i-1).width
txt1(i).top = txt1(i-1).top
txt1(i).visible = true
next i
end sub
I am trying to load 20 rows of text boxes loading 7 text boxes per row. The first column of boxes are already on the form (8 boxes per row). Each row of boxes is an array 0 thru 7. I can load the first row but can't figure out how to load the succeding rows whose text boxes start with
txt2(0), txt3(0), txt4(0), etc. In the code I have to change txt1 to txt2 etc. I am trying to avoid having to write this code for each row but instead iterate thru txt1, txt2, etc. But How??
Any help is appreciated.
Thank You,
TNN, Tom
TNPAYROLL@AOL.COM
[sig]<p>TOM<br><a href=mailto:WWW.TNPAYROLL@AOL.COM>WWW.TNPAYROLL@AOL.COM</a><br>[/sig]