TIP: Click on subject to list as thread! ANSI
echo: delphi
to: GARY WEINFURTHER
from: MICHAEL DOWERT
date: 1997-12-21 13:58:00
subject: Tlistbox

 GW> Michael Dowert mentioned this to All:
 MD>> Does anyone know how to delete all selected items in a
 MD>> Tlistbox ? Please write the code so i understand !
 GW> procedure DeleteSelectedItems(List : TListBox);
 GW> var
 GW>     i : integer;
 GW> begin
        with items.List do
 GW>         begin
 GW>         Items.BeginUpdate;
 GW>         for i := Count - 1 downto 0 do
 GW>             if Selected(i) then
 GW>                 Items.Delete(i);
 GW>         Items.EndUpdate;
 GW>         end;
 GW> end;
Thank's your help :))
Best Regards from Micahel.D
---
---------------
* Origin: Mart (2:200/316.56)

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™.