Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to PACK DATABASES for deleting 'deleted' records?

Posted on 1998-04-06
3
Medium Priority
?
212 Views
Last Modified: 2010-04-06
Tell me please, how I can pack databases for deleting all
deleted records? What I need to do?
Thanx
0
Comment
Question by:hind
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
icampbe1 earned 200 total points
ID: 1361304
Call dbiPackTable with the engine's handle for that cursor.  dBase files use this 'deleted' feature.

eg.  Check( dbiPAckTable( Table1.DBHandle, Table1.Handle, '', szdbase, True ));

Assuming your table is Table1, the above will work.
0
 
LVL 2

Expert Comment

by:icampbe1
ID: 1361305
Oh yeah....  you have to include 'BDE' in your uses clause.  Also, I seem to remember that the dataset must be opened exclusively for the call to work.

Cheers,
Ian C.
0
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1361306
According to the BDE help, DbiPackTable doesn't work for Paradox tables.  You have to use DbiDoRestructure using bPack for Paradox tables, although you use DbiPackTable for just about every other kind of table (including dBase).  Strange...

JB
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month20 days, 18 hours left to enroll

810 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