Saving DB files..

Posted on 2000-02-16
Last Modified: 2010-04-04
I want to save some files of a db (pdox) to a diskette. What I do is:
Table.Active := False;
Table.Acitve := True;
The problem is that unless I exit my program and re-enter, recent changes aren't saved to the diskette.
I've tried to use Table.Edit, Table.Post but it didn't work.
Any ideas as to how I can solve this problem?

Question by:GoodTimes
  • 2
LVL 12

Accepted Solution

rwilson032697 earned 100 total points
ID: 2530095
Hi Omri,

You should call ApplyUpdates on each of your tables to commit cached changes to the DB files.


LVL 12

Expert Comment

ID: 2530097
Oh, you should also call the FlushBuffers method, just to be sure :-)



Author Comment

ID: 2530641
Thanks, what I needed was FlushBuffers. My DB doesn't use Cached Updates..

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now