TUniQuery Eof problem
Posted: Tue 13 Aug 2013 03:54
I was iterating through a TUniQuery SELECT using code similar to the following :-
UniQuery.First()
while (not UniQuery.Eof) do begin
UniQuery.Next();
end;
I changed to a for i := 0 to UniQuery.RecordCount - 1 do begin which works fine.
I found the Eof was not being triggered after the last record and the loop would go one more iteration.
Using UniDac 5.0.2, XE4
UniQuery.First()
while (not UniQuery.Eof) do begin
UniQuery.Next();
end;
I changed to a for i := 0 to UniQuery.RecordCount - 1 do begin which works fine.
I found the Eof was not being triggered after the last record and the loop would go one more iteration.
Using UniDac 5.0.2, XE4