Web Hosting Talk







View Full Version : Visual Basic help please


luxx
10-23-2009, 11:43 PM
I have a list of check boxes which are associated with price values. Is there a way to call all the ".checked" variables so that I can add all the check marked values at the end, or subtract them on the fly?

hdsrob
10-25-2009, 11:48 AM
I have a list of check boxes which are associated with price values. Is there a way to call all the ".checked" variables so that I can add all the check marked values at the end, or subtract them on the fly?

You can set

CheckBox1.checked = True or False in code. is that what you are looking for?

kieransimkin
10-27-2009, 07:00 AM
You probably just want to loop over each of the checkboxes - number them from 0 to however many there are, then iterate over each one performing whatever operation you require on each.