One more thing about control arrays: Not only do they have to have the same name, they have to be the same TYPE of control - all plain textboxes, or all checkboxes, or all command buttons, or all labels or all option buttons WITHIN THE SAME ARRAY.
Alienwebmaster --- In [email protected], "Richard" <[EMAIL PROTECTED]> wrote: > But there is one way to exceed that number - use Control Arrays - and > you can have multiple controls with the same name (BEWARE: THEY ALSO > SHARE THE SAME CODE!) which you would reference by Index Number in > parenthesis. However, you can make a selection by doing a select > case on the index if you don't want all of the controls to do the > same thing. The easiest way to create a control array is to create > the first control, set it's properties, and copy and paste the > control - you will get a messagebox asking if you want to create a > control array, and click yes. Then the index property will be > automatically set for you. > > you could have multiple textboxes called "txtCustomer" - one for > first name, one for last name, two for address (one for organization > name, the other for mailing address) one for city, one for state, one > for zip. You would reference them as follows (in the same order as > above): > > First name: txtCustomer(0).text > Last Name: txtCustomer(1).text > Address 1 (org name) txtCustomer(2).text > Address 2 (mailing address) txtCustomer(3).text > ... > etc. > > Hope this helps! > > Alienwebmaster ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hsgmn07/M=362131.6882499.7825260.1510227/D=groups/S=1705115364:TM/Y=YAHOO/EXP=1124310031/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy</a>.</font> --------------------------------------------------------------------~-> '// ======================================================= Rules : http://ReliableAnswers.com/List/Rules.asp Home : http://groups.yahoo.com/group/vbHelp/ ======================================================= Post : [email protected] Join : [EMAIL PROTECTED] Leave : [EMAIL PROTECTED] '// ======================================================= Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/vbhelp/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
