Solved

How to PACK DATABASES for deleting 'deleted' records?

Posted on 1998-04-06
3
201 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 100 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

705 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now