Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Nov 2001
    Location
    Toronto Canada
    Posts
    920
    Thanks
    0
    Thanked 0 Times in 0 Posts

    DeSelecting (A2K)

    This is a minor little thing, but it would be nice to be able to clean it up.

    I have an unbound box which allows me to highlight a number of items that I want searched for and selected in order to do stuff to them.

    I press a
    Cheers,
    Andy

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: DeSelecting (A2K)

    You can add the following code to butClear_Click:
    <code>
    Dim lngIndex As Long
    For lngIndex = 0 to Me.lstSelect.ListCount - 1
    Me.lstSelect.Selected(lngIndex) = False
    Next lngIndex</code>

  3. #3
    5 Star Lounger
    Join Date
    Nov 2001
    Location
    Toronto Canada
    Posts
    920
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: DeSelecting (A2K)

    Hans,

    Like 5 minutes? I looked over my shoulder to see if you might be there or not.

    As always,

    a) Your code did the job,

    and

    [img]/forums/images/smilies/cool.gif[/img] Thanks most kindly

    Cheers,
    Cheers,
    Andy

Posting Permissions

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