IDimInstance.Attributes

Syntax

Attributes: IDimAttributesInstance;

Description

The Attributes property returns an object that contains a collection of dictionary attributes values.

Example

Sub Main;

Var

MB: IMetabase;

Dimen: IDimInstance;

Atrs: IDimAttributesInstance;

i: Integer;

Arr: IArrayList;

Begin

MB:=MetabaseClass.Active;

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

Arr:=New ArrayList.Create;

Atrs:=Dimen.Attributes;

For i:=0 To Dimen.Elements.Count-1 Do

Arr.Add(Atrs.Item(0).Value(i));

End For;

End Sub Main;

After executing the example the Arr dynamic array contains all values of the first dictionary attribute. Repository object identifier: D_TO.

See also:

IDimInstance