FindById(Id: String): ITableIndex;
Id is the index identifier.
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.
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: