BOOL pack(cdbfapiPlus* handle);
The function pack() removes records marked as deleted from a dbf file. It also removes not used blocks from memo file.
This operation cannot be undone.
{
// your code
printf( "Reccount = %ld\n", recCount(dbf) );
pack(dbf);
printf( "Reccount = %ld\n", recCount(dbf) );
// your code
}