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
Solved

Saving DB files..

Posted on 2000-02-16
3
129 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
  • 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

Title # Comments Views Activity
Firemonkey DbLookupComboBox equivalent ? 2 54
Wincontrol not (correctly) drawn 15 40
Breakpoint doesn't stop in my variable 3 30
scroll down TListBox component in Delphi 1 19
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…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

839 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