Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Used all the control names, need help with.. Arrays? =\
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Shaun Dreclin




PostPosted: 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! Razz

If you need me to, I can upload the form cause its kinda hard to explain.
Sponsor
Sponsor
Sponsor
sponsor
pavol




PostPosted: 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




PostPosted: Sun Mar 19, 2006 6:27 am   Post subject: (No subject)

Woo thanks! Very Happy This is EXACTLY what I needed, your a lifesaver! (Well mebbe not that extreme, but thanks anyways Razz)
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: