ITableIndexes.FindById

Syntax

FindById(Id: String): ITableIndex;

Parameters

Id is the index identifier.

Description

The FindById method searches and returns the object containing index of the table. The identifier, by which the search is performed, is passed by the Id parameter.

Example

Sub Main;

Var

MB: IMetabase;

Table: ITable;

Indexes: ITableIndexes;

Index: ITableIndex;

s: String;

Begin

MB:=MetabaseClass.Active;

Table:=MB.ItemById("TABLE_1").Bind As ITable;

Indexes:=Table.Indexes;

Index:=Indexes.FindById("TABLE_1_INDEX");

s:=Index.Name;

End Sub Main;

After executing the example, the "s" variable contains the name of index, identifier of which equals TABLE_1_INDEX. The table has the Table_1 identifier.

See also:

ITableIndexes