Can somone please throw some light on this?
The ShowMessage proves that the routine
progresses through the TQuery - but then stops on
the last record. Ignoring the EOF. Why?
procedure TfrmThisForm.btn1Click(Sender: TObject);
var
ABookmark : TBookmark;
begin
with dmThisModule.qryGroc do
begin
dmThisModule.qryGroc.Disablecontrols;
try
ABookMark := dmThisModule.qryGroc.GetBookmark;
dmThisModule.qryGroc.First;
while not dmThisModule.qryGroc.Eof do
begin
ShowMessage('qryGrocItem = ' + (dmThisModule.qryGrocItem.value));
dmThisModule.qryGroc.Next;
end;
finally
dmThisModule.qryGroc.GotoBookmark(ABookMark);
dmThisModule.qryGroc.FreeBookMark(ABookMark) ;
dmThisModule.qryGroc.enablecontrols;
end;
end;
end;