IStandardDimAttributes.Item

Syntax

Item(Index: Variant): IStandardDimAttribute;

Parameters

Index - attribute index in the collection or attribute identifier.

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 UserProc;
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 UserProc;

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

See also:

IStandardDimAttributes