AnyDAC
ContentsIndexHome
PreviousUpNext
TADADSUtility.Pack Method

Packs a table.

Group
Links

Use Pack method to remove deleted records from a table and re-index the table. The tables must not be used by any of the processes. 

The Tables property specifies the list of tables to process. TableType specifies type of the tables. The TablePassword property optionally specifies the table password.

procedure Pack;
ADADSUtility1.DriverLink := ADPhysADSDriverLink1;
ADADSUtility1.Database := 'C:\DB;ServerTypes=Local';
ADADSUtility1.Tables.Add('ORDERS.DBF');
ADADSUtility1.TableType := ttVFP;
ADADSUtility1.Pack;
What do you think about this topic? Send feedback!