Click to See Complete Forum and Search --> : Checking values in control arrays VB


Raptor2150
11-25-2001, 08:17 PM
I've got an array of check boxes that I need to check, at runtime, whether or not they're all checked, none are checked, or some are checked.

------------------
Athlon XP 1800+ (OC pending)
Alpha PAL8045
Epox 8KHA+
256mb Crucial pc2100 ddr
Maxtor D740x 40 GB
ATI Radeon8500 (300/300)
Antec PP403x 400w

hobbes2112
11-26-2001, 01:24 AM
For counter1 = 0 to (number of checkboxes-1)

If chkBox(counter1).Value = vbChecked then

counter2 = counter2 + 1
EndIf
Next counter1



edit: you need to dimension everything correcty

------------------
Why Yes! I am (http://www.geocities.com/bloodred716/hobbes2112.html) a proud member of the SF Linux Hippy Club (http://www.geocities.com/bloodred716/hippy.html).

[This message has been edited by hobbes2112 (edited November 26, 2001).]