Solved

How to PACK DATABASES for deleting 'deleted' records?

Posted on 1998-04-06
3
209 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
[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 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

691 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