[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 139
  • Last Modified:

Saving DB files..

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
GoodTimes
Asked:
GoodTimes
  • 2
1 Solution
 
rwilson032697Commented:
Hi Omri,

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

Cheers,

Raymond.
0
 
rwilson032697Commented:
Oh, you should also call the FlushBuffers method, just to be sure :-)

Cheers,

Raymond.
0
 
GoodTimesAuthor Commented:
Thanks, what I needed was FlushBuffers. My DB doesn't use Cached Updates..
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now