Autor Beitrag
Licki
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 132

Knoppix, Win 95, Win 2000, Win NT, Win 98, Win XP
Delphi 3
BeitragVerfasst: Fr 24.10.03 08:42 
Hi...

Ich habe ein Problem. Ich habe eine DBF-Datei und diese soll mittels einer Schleife so oft durchsucht werden, bis die Schleife am letzten Datensatz angelangt. Sie soll also von Datensatz 1 bis zum letzten Datensatz gehen.

Mit den Schleifen verstehe ich, aber woher bekomme ich die Anzahl der Datensätze heraus?

Für Hilfe dankbar. :)
MAlsleben
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 303

W2k,WinXP
D3 - DXE3 Enterprise
BeitragVerfasst: Fr 24.10.03 09:46 
Hi,

trifft das deine Frage?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
table1.active:=true;
table1.first
while not table1.eof do
begin

 { noch weitere Schleifen if oder was auch immer}

   table1.next;
end;


Gruß Micha

_________________
Viele Wege führen nach Rom.
Licki Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 132

Knoppix, Win 95, Win 2000, Win NT, Win 98, Win XP
Delphi 3
BeitragVerfasst: Fr 24.10.03 10:05 
Dank dir, hat einwandfrei geklappt. :)
Nightfly
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 163



BeitragVerfasst: Fr 24.10.03 11:49 
Und Falls du doch mal die anzahl der Datensätze brauchst:

ausblenden Quelltext
1:
Anzahl := Table1.RecordCount;