Remove(Index: Integer): Boolean;
Index is number of index.
The Remove method removes the index, number of which is passed by the Index parameter.
Sub Main;
Var
MB: IMetabase;
Object: IMetabaseObject;
Table: ITable;
Indexes: ITableIndexes;
Index: ITableIndex;
Begin
MB:=MetabaseClass.Active;
Object:=MB.ItemById("TABLE_1").Edit;
Table:=Object As ITable;
Indexes:=Table.Indexes;
Indexes.Remove(0);
Object.Save;
End Sub Main;
After executing the example, the first index in the table with the Table_1 identifier is removed.
See also: