Checking values in control arrays VB

Sharky Forums


Results 1 to 2 of 2

Thread: Checking values in control arrays VB

  1. #1
    Hammerhead Shark Raptor2150's Avatar
    Join Date
    Aug 2001
    Posts
    1,507

    Post Checking values in control arrays VB

    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

  2. #2
    Hammerhead Shark hobbes2112's Avatar
    Join Date
    Jul 2001
    Posts
    1,553

    Post

    Code:
    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 a proud member of the SF Linux Hippy Club.

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •