IStandardDimAttributes.Item

Syntax

Item(Index: Variant): IStandardDimAttribute;

Parameters

Index. Attribute index in the collection or attribute ID.

NOTE. While passing attribute ID functioning as parameter value, all ID symbols should be in upper case.

Description

The Item property returns parameters of table dictionary attribute.

Example

Executing the example requires a table dictionary with the TAB_DIM identifier in the repository. The repository contains an attribute with the USER identifier.

Sub Main;

Var

MB: IMetabase;

Dimens: IStandardDimension;

DimAtrrs: IStandardDimAttributes;

DimAtribut: IStandardDimAttribute;

s: String;

Begin

MB:=MetabaseClass.Active;

Dimens:=MB.ItemById("TAB_DIM").Bind As IStandardDimension;

DimAtrrs:=Dimens.Attributes;

DimAtribut:=DimAtrrs.Item("USER");

s:=DimAtribut.Name;

End Sub Main;

After executing the example the "s" variable contains the name of the specified dictionary attribute.

See also:

IStandardDimAttributes