IUserDimAttributes.Item

Syntax

Item(Index: Variant): IUserDimAttribute;

Parameters

Index. Attribute index.

Description

The Item property returns an object containing dictionary attribute. Attribute index is passed by the Index parameter.

Example

Sub UserProc;
Var
    MB: IMetabase;
    UsDim: IUserDimension;
    UsDimAts: IUserDimAttributes;
    UsDimAttr: IUserDimAttribute;
    s: String;
Begin
    MB:=MetabaseClass.Active;
    UsDim:=MB.ItemById("USER_DIM").Bind As IUserDimension;
    UsDimAts:=UsDim.Attributes;
    UsDimAttr:=UsDimAts.Item(UsDimAts.Count-1);
    s:=UsDimAttr.Name;
End Sub UserProc;

After executing the example the "s" variable contains the name of the last attribute of the calculated dictionary. Dictionary identifier - USER_DIM.

See also:

IUserDimAttributes