TMedTable.CreateTable TMedTable

procedure CreateTable;

Description

Use CreateTable to create table based on the current dataset definitions.

Warning! If table with the same name already exists it is overwritten! To prevent accidental loss of data, always check for table existance using Exists property before calling CreateTable.

Table fields definitions are taken from FieldDefs property. If FieldDefs does not contain field definitions, Fields property is used. After table creation, IndexDefs property is examined and appropriate indexes created if it is not empty.

Currently, the following field types are supported:

·ftString - implemented as CHARACTER

·ftSmallInt - implemented as NUMERIC 6,0

·ftInteger - implemented as NUMERIC 11,0

·ftFloat - implemented as NUMERIC 20,4

·ftDate - implemented as DATE

·ftBoolean - implemented as LOGICAL

·ftMemo - implemented as MEMO