RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIBTable.CreateTable Method

Builds a new table using new structure information.

Pascal
procedure CreateTable;
C++
__fastcall CreateTable();

Call CreateTable at runtime to create a table using this dataset's current definition. CreateTable overwrites an existing table's structure and data; to avoid overwriting an existing table, check Exists before calling CreateTable. 

If the FieldDefs property contains values, these values are used to create field definitions. Otherwise the Fields property is used. One or both of these properties must contain values in order to recreate a dataset. 

If the IndexDefs property contain values, these values are used to create index definitions for the dataset. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!