Item(Index: Variant): IStandardDimIndexAttribute;
Index. Attribute index.
The Item property returns an object containing attribute by which the index is created.
Sub Main;
Var
MB: IMetabase;
Dim: IStandardDimension;
DimInds: IStandardDimIndexes;
DimIndex: IStandardDimIndex;
DimIndAttrs: IStandardDimIndexAttributes;
DimIndAttr: IStandardDimIndexAttribute;
s: String;
Begin
MB:=MetabaseClass.Active;
Dim:=MB.ItemById("TAB_DIM").Bind As IStandardDimension;
DimInds:=Dim.Indexes;
If DimInds.Count<>0 Then
DimIndex:=DimInds.Item(0);
DimIndAttrs:=DimIndex.Attributes;
DimIndAttr:=DimIndAttrs.Item(0);
s:=DimIndAttr.Id;
End If;
End Sub Main;
After executing the example the "s" variable shows name of dictionary attribute used to create the first index. Table dictionary identifier: TAB_DIM.
See also: