Solved

Saving DB files..

Posted on 2000-02-16
3
132 Views
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;
MkDir('Temp123');
Copy-Files-To-Temp-Dir;
Copy-Files-From-Temp-Dir-To-A:\;
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?

Omri
0
Comment
Question by:GoodTimes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
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.

Cheers,

Raymond.
0
 
LVL 12

Expert Comment

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

Cheers,

Raymond.
0
 

Author Comment

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

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month5 days, 7 hours left to enroll

626 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