Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Jul 2001
    Posts
    119
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Check box for list (97)

    What is the code for a check box then when selected with select all values of a particular listbox?

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Check box for list (97)

    Not sure what you're looking for. But I'll take a quess.

    You want a check box, that when checked will select all the items in a list box (presumably sitting next door).

    If chkBox then
    For i = 0 To lstBox.ListCount - 1
    lstBox.Selected(i) = True
    Next
    Endif
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  3. #3
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Check box for list (97)

    However ...

    1) That only applies to multiselect listboxes, and

    2) If you have column headings turned on, you have to loop from 1 to the ListCount
    Charlotte

Posting Permissions

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