| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Tlistbox |
Michael Dowert mentioned this to All:
MD> Does anyone know how to delete all selected items in a Tlistbox ?
MD> Please write the code so i understand !
procedure DeleteSelectedItems(List : TListBox);
var
i : integer;
begin
with List do
begin
Items.BeginUpdate;
for i := Count - 1 downto 0 do
if Selected(i) then
Items.Delete(i);
Items.EndUpdate;
end;
end;
...Gary
--- GoldED 2.41
---------------
* Origin: The Flying Circus BBS, Farmington Hills, MI, USA. (1:2410/905) |
|
| SOURCE: echomail via exec-pc | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.