Solved

Saving DB files..

Posted on 2000-02-16
3
131 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

734 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