FrankThynne
Technical User
I'm using TQuery with a local Paradox table. The query's SQL selects on a number of conditions including
... and DateProcessed is Null
The query is a live data set and I am updating it directly (not using cached updates).
The program steps through the rows found and, after processing the data, updates DateProcessed.
The code looks like this
with Query do
begin
First;
while not EOF do
begin
ProcessData();
Edit;
FieldValues['DateProcessed'] := SomeDate;
Next;
end;
end;
Clearly, when the Next statement is executed, the change is posted and the current row becomes invalid (because it no longer satisfies the query criteria).
However, at this point it seems that the next row is skipped, with the effect that only half the rows are processed.
I believe this to be an error in the BDE. At the moment I haven't devised a work-around. I've tried using filters instead, and I've tried using a Post statement before the Next, and the results are the same.
... and DateProcessed is Null
The query is a live data set and I am updating it directly (not using cached updates).
The program steps through the rows found and, after processing the data, updates DateProcessed.
The code looks like this
with Query do
begin
First;
while not EOF do
begin
ProcessData();
Edit;
FieldValues['DateProcessed'] := SomeDate;
Next;
end;
end;
Clearly, when the Next statement is executed, the change is posted and the current row becomes invalid (because it no longer satisfies the query criteria).
However, at this point it seems that the next row is skipped, with the effect that only half the rows are processed.
I believe this to be an error in the BDE. At the moment I haven't devised a work-around. I've tried using filters instead, and I've tried using a Post statement before the Next, and the results are the same.