IStandardDimIndexAttributes.Item

Syntax

Item(Index: Variant): IStandardDimIndexAttribute;

Parameters

Index. Attribute index.

Description

The Item property returns an object containing attribute by which the index is created.

Example

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:

IStandardDimIndexAttributes