Главная страница | назад





Article #16865: Packing dBase tables

 Question and Answer Database

FAQ1865C.txt   Packing dBase tables
Category   :Database Issues
Platform    :All
Product    :C++Builder  1.x

Question:
Is there a BDE API or a DLL available to pack a dBASE table?

Answer:
The BDE includes a function to pack dBASE tables, called 
DbiPackTable().

Include the BDE.HPP header file.  Then call the BDE function as
follows:

DBIPackTable(Table1->DbHandle, Table1->Handle, 
         "TABLENAME.DBF", szDBASE, TRUE);

Note: The table must be opened in exclusive mode.

7/2/98 10:32:32 AM
 

Last Modified: 01-SEP-99