Autor Beitrag
landwehr
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46

WIN XP, WIN 7, WIN 8
Delphi 6, Delphi 2007, Delphi XE2
BeitragVerfasst: Di 28.06.11 12:47 
Hallo Leute,

ich glaube ich werd verrückt.

Ich habe eine ADO Tabelle mit folgenden code.

While not Tabelle.eof do
begin
..
..
..
..
Tabelle.Next; ---> Geht nicht und ich weiß nicht warum. Mit anderen Tabellen in der gleichen Anwendung geht es.
end;

In der Tabelle sind rund 15000 Datensätzte.

Weiß jemand rat.

Danke im voraus
Walter
pwsolaris
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 71
Erhaltene Danke: 1

MS DOS, Win 95, Win 98, Win ME, Win XP, Win Vista, Win 7 Ultimate
Delphi 5 Enterp., Delphi 2007, Delphi 2009, Informix 4GL, VB .NET, MS/SQL, PL/SQL
BeitragVerfasst: Di 28.06.11 13:30 
So ein ähnliches Problem hatte ich auch schon einmal. Ich wollte damals jedoch per Button-Druck den nächsten Datensatz haben.
Wenn ich mich recht erinnere, habe ich immer ganz am Anfang den ersten Datensatz geholt...

Bei dir also "Tabelle.First;"

Bin mir nicht zu 100% sicher, dass du damit auch weiter kommst...
Sybok Factor
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 50
Erhaltene Danke: 5

Win XP, Win Vista
Delphi 2010 Professional
BeitragVerfasst: Di 28.06.11 13:33 
Hallo landwehr,

hast du mal geprüft, ob du schon EOF bist? Der Hinweis von pwsolaris ist auf jeden Fall richtig. Eventuell spielt auch die Sortierreihenfolge eine Rolle, ich habe da sowas in Erinnerung, dass es so wie bei dir nicht funktioniert, wenn die Tabelle absteigend sortiert ist..

Viele Grüße
Sybok

_________________
Jetzte michse verstehen dein Problem.
landwehr Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46

WIN XP, WIN 7, WIN 8
Delphi 6, Delphi 2007, Delphi XE2
BeitragVerfasst: Di 28.06.11 15:11 
Hallo,

habe den Fehler gefunden. Es waren mehrere Datensätze mit gleichem Feldinhalt vorhanden. Darum habe ich nicht gemerkt das er bereits auf den nächsten Satz Stand.

Trotz Brille Fehler zu spät erkannt.

Trotzdem Danke an alle.

Walter