FireDAC.Phys.ADS.TFDADSUtility.Pack

From RAD Studio API Documentation

[–] Properties
Type:
procedure
function
Visibility: public
Source:
FireDAC.Phys.ADS.pas
FireDAC.Phys.ADS.hpp
Unit: FireDAC.Phys.ADS
Parent: TFDADSUtility

Delphi

procedure Pack;

C++

void __fastcall Pack();

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;

See Also