Autor Beitrag
Scotch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 101


Delphi 6 Prof
BeitragVerfasst: Fr 27.09.02 13:47 
Hallo Leutz,

wie kann ich ein Feld in eine Tabelle auslesen.
Ich mein jetzt nich mit welcher Komponente ( DBEdit oder so).
Ich dachte da an sowas wie
ausblenden Quelltext
1:
2:
3:
4:
5:
procedure TForm1.Button1Click(Sender: TObject);
var tInhalt : string;
begin
tInhalt := (z.B.  der Inhalt von Tabele1, Zeile10, Feld2 ) 
End;


Cu Scotch
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Fr 27.09.02 13:52 
Hi
beispielsweise so:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.Button1Click(Sender: TObject); 
var tInhalt : string; 
begin 
tInhalt := Tabelle1.Fields[1].AsString;
oder
tInhalt := Tabell1.FieldByName('Feldname').AsString; 
End;

Auf den richtigen Datensatz muss du vorher mit den entsprechenden Methode von TTable positionieren (MoveBy, FindKey, Locate)

Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Fr 27.09.02 18:45 
Hallo,

Schaue mal in die Tutorials.

Gruß
Klabautermann
Scotch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 101


Delphi 6 Prof
BeitragVerfasst: Fr 27.09.02 18:55 
ja ja ich weiß,

war mal wieder schneller mit den Fingern als mit dem Kopf.... LOL


trotzdem danke....

cu scotch