Used all the control names, need help with.. Arrays? =\
Author |
Message |
Shaun Dreclin
|
Posted: Fri Mar 17, 2006 2:49 pm Post subject: Used all the control names, need help with.. Arrays? =\ |
|
|
Well im making a little track sheet thing to keep track of what rares are worth on an online game. Its supposed to have 10 pages, and each page has 40 text boxes in it. I either need a totally new way of switching pages (Im using bullet points), or I need to know how to use an array to hide/show a set of 40 all as one item. So umm... HELP ME!
If you need me to, I can upload the form cause its kinda hard to explain. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
pavol
|
Posted: Fri Mar 17, 2006 3:17 pm Post subject: (No subject) |
|
|
im not sure if this is what you mean but, if you create a textbox on a form and name it Text, then you copy and paste 39 more of them, and when if asks you if you want to create a control array you click Yes. when this is done you should have 40 textboxes named: Text(0), Text(1), Text(2)...Text(39). now to make them all visible or not visible you can just easily do this in a for loop
code: | For i = 0 To 39
Text (i).Visible = (true or false)
Next i |
i hop this is what you were looking for |
|
|
|
|
|
Shaun Dreclin
|
Posted: Sun Mar 19, 2006 6:27 am Post subject: (No subject) |
|
|
Woo thanks! This is EXACTLY what I needed, your a lifesaver! (Well mebbe not that extreme, but thanks anyways ) |
|
|
|
|
|
|
|