Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread BeginCachedUpdates/CancelCachedUpdates how does it works?
Thu, Aug 3 2006 8:31 AMPermanent Link

Mike Mayer
Hi,

I have read article about BeginCachedUpdates/CancelCachedUpdates in DBISAM pdf
and decided to try this cool feature.

I have placed DBISAMSQL with SELECT sql clause on form and open it.
Then  execute  BeginCachedUpdates, insert several records with blob field.
While trying to cancel update with code below, the inserted records does not disapears.
I thought that Cached Updates is like Transactions, if I call CancelCachedUpdates all  made changes should be ignored.
Am I right? What I am doing wrong?


 if xxx.CachingUpdates then
 begin
   xxx.CancelCachedUpdates;
   ShowMessage('Canceled');
 end;


Version 4.x
Regards,
Mike
Thu, Aug 3 2006 8:36 AMPermanent Link

Mike Mayer
Please ignore my question, my mistake, everything works fine like I expected.
Image