Remove(Index: Integer): Boolean;
Index is field index.
The Remove method removes the table field, index of which is passed by the Index parameter.
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: