View Single Post
Old Mar 10th, 2005, 2:01 AM   #1
chepfaust
Programmer
 
chepfaust's Avatar
 
Join Date: Feb 2005
Posts: 62
Rep Power: 4 chepfaust is on a distinguished road
need some general optimization help :)

hello,

i have eight comboboxes, called cb1 to cb8. if i wanted to perform a function on each combobox, is there any way i could use a <for x = 1 to 8> loop to perform the action on combobox cb(x), or am i stuck having to maintain eight individual and separate sets of code?

my rationale is that every time need to change something with one combobox, i have to go tweak the code for seven other comboboxes. it would be easier to change it once and let a loop handle the rest, but i'm not sure if it's possible to do this in vb. sorry if this seems like a trite question

thanks
chepfaust is offline   Reply With Quote