Page 1 of 1

what is replacement for FlushBuffers from BDE

Posted: Fri 09 Mar 2012 19:52
by Lepsik
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;

Posted: Mon 12 Mar 2012 12:10
by AndreyZ
Yes, it's enough.

Posted: Mon 12 Mar 2012 13:09
by Lepsik
Thanks.

What is the best way to use UniConnection:

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

Posted: Tue 13 Mar 2012 09:33
by AndreyZ
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.