(CodeLib-Manager)
Registriert seit: 10. Jun 2002
4.648 Beiträge
Delphi XE Professional
|
Re: ComboBox: keine doppelten Einträge
7. Mai 2004, 20:28
Hi,
Hier eine andere Variante:
Delphi-Quellcode:
var
sl: TStringList;
begin
sl := TStringList.Create;
try
with sl do
begin
sl.Sorted := True;
Duplicates := dupIgnore;
Assign(ComboBox1.Items);
end;
ComboBox1.Items.Assign(sl);
finally
sl.Free;
end;
Thomas
|