Solved

EASY: Delete Multiple Selections From a List Box

Posted on 1998-11-05
3
115 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to build JSON File in Delphi 6 3 34
Firemonkey DbLookupComboBox equivalent ? 2 47
how to change, disabled button color FMX ? 1 32
MS Access from Delphi 31 28
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

770 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