FireDAC.Phys.ADS.TFDADSUtility.Pack
Delphi
procedure Pack;
C++
void __fastcall Pack();
Contents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FireDAC.Phys.ADS.pas FireDAC.Phys.ADS.hpp |
FireDAC.Phys.ADS | TFDADSUtility |
Description
Packs a table.
Use the 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. The TableType property specifies the type of the tables. The TablePassword property is optional and it specifies the table password.
Example
FDADSUtility1.DriverLink := FDPhysADSDriverLink1;
FDADSUtility1.Database := 'C:\DB;ServerTypes=Local';
FDADSUtility1.Tables.Add('ORDERS.DBF');
FDADSUtility1.TableType := ttVFP;
FDADSUtility1.Pack;