Einzelnen Beitrag anzeigen

Carsten1234

Registriert seit: 9. Apr 2008
Ort: Vechelde
178 Beiträge
 
Delphi 8 Professional
 
#5

Re: Löscht TComboBox.Items.Clear auch Objekte?

  Alt 11. Jun 2009, 09:12
Bisher also nur ein klares JEIN.
Besser?
Delphi-Quellcode:
for x:= 0 to ComboBox.Items.Count- 1 do
begin
  if (Assigned(TObject(ComboBox.Items.Objects[x]))) then
    TObject(ComboBox.Items.Objects[x]).Free;
end;
ComboBox.Items.Clear;
  Mit Zitat antworten Zitat