Solved

EASY: Delete Multiple Selections From a List Box

Posted on 1998-11-05
3
113 Views
Last Modified: 2010-04-04
any ideas ? =)
0
Comment
Question by:k6__
  • 2
3 Comments
 
LVL 2

Author Comment

by:k6__
ID: 1345814
Adjusted points to 25
0
 
LVL 2

Author Comment

by:k6__
ID: 1345815
Adjusted points to 28
0
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 20 total points
ID: 1345816
Run though all the items in the listbox, deleting the ones where the Selected property equals TRUE.

eg:
for I := ListBox.items.count - 1 downto 0 do
  if ListBox.selected[i] then
    ListBox.items.delete(i);

Cheers,

Raymond.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now