Autor Beitrag
Christoph Englmann
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Mo 04.04.05 09:04 
hallo,

möchte die einträge einer combobox zeilenweise (also mit einer zählerschleife) durchlaufen und auslesen...
mein problem:
mit welchem syntax kann ich den i-ten eintrag einer combobox auslesen???

danke
christoph
Stübi
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 331

Win XP, Win 2000, Win ME
D5 Ent, D7 Prof, D2005 PE, C#
BeitragVerfasst: Mo 04.04.05 09:13 
hallo

prinzipiell funktioniert eine Combobox ja ähnlich wie eine Listbox, das heisst du kannst das Item i oder die Zeile i durch:
ausblenden Delphi-Quelltext
1:
  String := Combobox.Items[i];					

auslesen

Gruss Stübi

_________________
Neun von zehn Stimmen in meinen Kopf sagen, dass ich nicht verrückt sei. Die zehnte summt die Tetrismelodie.
Blackheart
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 164

ME
D3Prof.-D6Standard
BeitragVerfasst: Mo 04.04.05 09:17 
ausblenden Delphi-Quelltext
1:
2:
i:= ListBox1.ItemIndex;
... := ListBox1.Items.Strings[i];
Christoph Englmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Mo 04.04.05 10:48 
das es so einfach ist, hätte ich net gedacht....

danke