Control Arrays

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Mar 2007
Posts: 1,851
Reputation: sk8ndestroy14 is an unknown quantity at this point 
Solved Threads: 1
sk8ndestroy14's Avatar
sk8ndestroy14 sk8ndestroy14 is offline Offline
Posting Virtuoso

Control Arrays

 
0
  #1
Jun 17th, 2007
This is just a simple question. There are four command buttons in a control array. I want to write code for one of them that changes the same property in the same way for all of them. When I tried doing this with just a specific button (I entered the subscript) it gave me suggestions as it usually does, but when I didn't specify a subscript it only had four suggestions, none of which were properties that could be changed. How would you change the property of all of them at once?
Disclaimer: Nothing I say can be considered credible information (I wonder what that means about this disclaimer then).
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 319
Reputation: DenisOxon is an unknown quantity at this point 
Solved Threads: 15
DenisOxon's Avatar
DenisOxon DenisOxon is offline Offline
Posting Whiz

Re: Control Arrays

 
1
  #2
Jun 17th, 2007
Sorry this is not the answer you are looking for, but I am pretty sure you will need to put four lines of code, one for each button to change them.

Or use a loop ....
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 1,851
Reputation: sk8ndestroy14 is an unknown quantity at this point 
Solved Threads: 1
sk8ndestroy14's Avatar
sk8ndestroy14 sk8ndestroy14 is offline Offline
Posting Virtuoso

Re: Control Arrays

 
0
  #3
Jun 17th, 2007
Is there any way to use a For Next combination? Possibly with a variable as the index number? I'll try it. If not, then tell me how you would use a loop.
Disclaimer: Nothing I say can be considered credible information (I wonder what that means about this disclaimer then).
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 1,851
Reputation: sk8ndestroy14 is an unknown quantity at this point 
Solved Threads: 1
sk8ndestroy14's Avatar
sk8ndestroy14 sk8ndestroy14 is offline Offline
Posting Virtuoso

Re: Control Arrays

 
0
  #4
Jun 17th, 2007
Yeah sorry. I just realized the For Next is a loop. Lol. But yeah it works. Thanks for your help.
Disclaimer: Nothing I say can be considered credible information (I wonder what that means about this disclaimer then).
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 319
Reputation: DenisOxon is an unknown quantity at this point 
Solved Threads: 15
DenisOxon's Avatar
DenisOxon DenisOxon is offline Offline
Posting Whiz

Re: Control Arrays

 
0
  #5
Jun 18th, 2007
Originally Posted by sk8ndestroy14 View Post
Yeah sorry. I just realized the For Next is a loop. Lol. But yeah it works. Thanks for your help.
Exactly what I had in mind - glad to help and to hear it has worked.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum


Views: 879 | Replies: 4
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC