TurboDB VCL Component Library

TTdbTable.AlterTable

TTdbTable

Previous  Top  Next

Restructures the database table.

Delphi syntax:

procedure AlterTable;

C++ syntax:

void __fastcall AlterTable(void);

Description

Use AlterTable to modify the columns, the table level, the password or key of a database table. Before you call AlterTable set the FieldDefsTdb, the TableLevel, the EncryptionMethod, the Password and the Capacity properties to the desired values. If the OnProgress event is assigned, AlterTable notifies the handler during the altering process.

Note: Do not call any TurboDB database methods in the OnProgress event handler during altering a table since this can leave the TurboDB Engine in a indeterminate state.