Cache current DataSet and restore inside loop
Posted: Tue 23 Jan 2018 19:56
Hey guys!
I'm currently thinking about to buy this nice component. But first I want to make sure If it is the right tool.
So, my question is the following:
How is it possible to save the current MyTable-state while you loop through the dataset. What I mean is
As you can see, the state of the dataset should be the same like before pushsate and after popstate.
Can you guys help me? Would be very nice!
Best regards
Benjamin
I'm currently thinking about to buy this nice component. But first I want to make sure If it is the right tool.
So, my question is the following:
How is it possible to save the current MyTable-state while you loop through the dataset. What I mean is
Code: Select all
FAutomat.OrderFields:= 'recno ASC';
FAutomat.Open;
while not FAutomat.Eof do
begin
FAutomat.PushState; // thats what I'm looking for -> should save the state
// Do a different select
FAutomat.AddWhere('name="Test"');
FAutomat.Open;
FAutomat.PopState; // should restore the pushed state
end;
Can you guys help me? Would be very nice!
Best regards
Benjamin