ITableIndexes.Remove

Syntax

Remove(Index: Integer): Boolean;

Parameters

Index is number of index.

Description

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

Example

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:

ITableIndexes