ITableFields.Remove

Syntax

Remove(Index: Integer): Boolean;

Parameters

Index is field index.

Description

The Remove method removes the table field, index of which is passed by the Index parameter.

Example

Sub Main;

Var

MB: IMetabase;

Object: IMetabaseObject;

Table: ITable;

Fields: ITableFields;

Begin

MB:=MetabaseClass.Active;

Object:=MB.ItemById("TABLE_1").Edit;

Table:=Object As ITable;

Fields:=Table.Fields;

Fields.Remove(0);

Object.Save;

End Sub Main;

After executing the example, the first field of the table is removed. The table identifier is Table_1.

See also:

ITableFields