Autor Beitrag
Freeman1982
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24

Windows XP

BeitragVerfasst: Do 26.05.05 13:02 
Hallo

ich möchte in eine Combo Box werte durch eine Schleife rein schreiben.
Das Problem ist jetzt aber das er mir zwar die[meta] Schleife durchläuf aber immer den schon verhandenen Eintrag überschreibt
Wie sage ich der Box das Sie den nächten Eintrag in die nächste Zeile schreiben soll

Mein Beispiel


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
I : Integer;
begin
Datei_oeffnen_ao;
seek(aodatei,0);
For I:= 1 to Filesize(aodatei) Do
read(aodatei,aosatz);
Begin
  combobox1.Items.Add (aosatz.dat_automarke);
end;


MfG

Freeman1982

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt.
stifflersmom
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 194

XP /XP PRO/ SuSE div.
D1 - D7, BDS 2006
BeitragVerfasst: Do 26.05.05 13:24 
Das Hinzufügen in Deine Box ist AUSSERHALB Deiner Schleife :wink:
Änder das mal so ab
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
For I:= 1 to Filesize(aodatei) Do  
Begin  
read(aodatei,aosatz);  
  combobox1.Items.Add (aosatz.dat_automarke);  
end;
Freeman1982 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24

Windows XP

BeitragVerfasst: Sa 28.05.05 20:00 
Titel: Dankeschön
Danke für die schnelle hilfe hat alles super geklappt.
Schon komisch das so ein kleiner Fehler so viel bewirken kann

MfG

Freeman1982