IDimIndexInstanceLookup.Attribute

Syntax

Attribute(Index: Integer): IDimAttribute;

Parameters

Index — dictionary attribute index.

Description

The Attribute property returns structure of the attribute by which the search can be carried out.

Example

Sub Main;

Var

MB: IMetabase;

Dimen: IDimInstance;

IndxsInst: IDimIndexesInstance;

IndexInst: IDimIndexInstance;

InstLook: IDimIndexInstanceLookup;

s: String;

Begin

MB:=MetabaseClass.Active;

Dimen:=MB.ItemById("D_TO").Open(Null) As IDimInstance;

IndxsInst:=Dimen.Indexes;

If IndxsInst.Count<>0 Then

IndexInst:=IndxsInst.Item(0);

InstLook:=IndexInst.CreateDimIndexLookup;

s:=InstLook.Attribute(0).Name;

End If;

End Sub Main;

After executing the example an object is created to find elements in the dictionary, and the "s" variable shows name of the first index attribute by which the search can be carried out.

See also:

IDimIndexInstanceLookup