Thema: Delphi ComboBox1.Itemindex

Einzelnen Beitrag anzeigen

Christian Seehase
(Co-Admin)

Registriert seit: 29. Mai 2002
Ort: Hamburg
11.105 Beiträge
 
Delphi 11 Alexandria
 
#3

Re: ComboBox1.Itemindex

  Alt 26. Okt 2003, 22:07
Moin Horst,

meinst Du das:

Delphi-Quellcode:
// Zeile hinzufügen
Form1.ComboBox1.Items.Add(Form2.edit1.Text);
// und diese dann im Editfeld der ComboBox anzeigen
// (Items.Count-1) = Index des letzten Items
Form1.ComboBox1.ItemIndex := Form1.ComboBox1.Items.Count-1;
?
Tschüss Chris
Die drei Feinde des Programmierers: Sonne, Frischluft und dieses unerträgliche Gebrüll der Vögel.
Der Klügere gibt solange nach bis er der Dumme ist
  Mit Zitat antworten Zitat