Einzelnen Beitrag anzeigen

Benutzerbild von Lannes
Lannes

Registriert seit: 30. Jan 2005
Ort: Münster
745 Beiträge
 
Delphi 3 Professional
 
#3

Re: ComboBox ohne doppelten Einträgen

  Alt 23. Jun 2009, 23:03
Hallo,

da hilft IndexOf
Delphi-Quellcode:
s := 'AAA';
if ComboBox1.Items.IndexOf(s) = -1 then
  ComboBox1.Items.Add(s);
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
  Mit Zitat antworten Zitat