Autor Beitrag
Anfänger
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 128

WinXP
D3 Prof
BeitragVerfasst: Di 03.02.04 13:56 
Ich habe eine Combobox und möchte alle Überschriften/Datafields des Tables darin stehen haben.
Ich weiß die Antwort ist bestimmt leicht, aber ich komm nicht drauf.

Hier ist mal der Code, den ich verwenden möchte
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
  With combobox1.Items do
  begin
    Clear;
    For I:=0  to ? //Ende der Tabelle (breite)
        Add (?)        //die Überschrift der Spalte 
  end;
KidPaddle
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 351

WinXP,Linux
D7 Prof, XE7
BeitragVerfasst: Di 03.02.04 15:14 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
  With combobox1.Items do 
  begin 
    Clear; 
    For I:=0  to (Table.FieldCount - 1//Ende der Tabelle (breite) 
        Add (Table.Fields[I].DisplayLabel);        //die Überschrift der Spalte 
  end;


KidPaddle
Anfänger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 128

WinXP
D3 Prof
BeitragVerfasst: Di 03.02.04 15:57 
Klappt super!

für die, dies auch brauchen, KidPaddle und ich haben beide eine Zeile jalsch geschrieben hier ist sie richtig (mein Fehler).

ausblenden Delphi-Quelltext
1:
For I:=0  to (Table.FieldCount - 1do