what is replacement for FlushBuffers from BDE

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Lepsik
Posts: 12
Joined: Mon 27 Feb 2012 17:45
Contact:

what is replacement for FlushBuffers from BDE

Post by Lepsik » Fri 09 Mar 2012 19:52

using UniConnection.ApplyUpdates is enough to replace this :

Code: Select all

       for jter := 0 to ISCDatabase.DataSetCount - 1 do
        if ISCDatabase.DataSets[jter].Active then
          ISCDatabase.DataSets[jter].FlushBuffers;

AndreyZ

Post by AndreyZ » Mon 12 Mar 2012 12:10

Yes, it's enough.

Lepsik
Posts: 12
Joined: Mon 27 Feb 2012 17:45
Contact:

Post by Lepsik » Mon 12 Mar 2012 13:09

Thanks.

What is the best way to use UniConnection:

1. Have one per whole application;
2. Have on each form/logical part of application;

AndreyZ

Post by AndreyZ » Tue 13 Mar 2012 09:33

If you don't use threads in your applications, you can use any way from those you described above that is more appropriate for you. But if you use threads, you should have a connection (the TUniConnection component) in each thread.

Post Reply