IDimElements.Owner

Syntax

Owner(Element: Integer): Integer;

Parameters

Element — index of dictionary element.

Description

The Owner property returns index of the parent for element with the index Element. It returns -1 if the element is a root one.

Example

Sub Main;

Var

MB: IMetabase;

Dimen: IDimInstance;

Elem: IDimElements;

i: Integer;

Begin

MB:=MetabaseClass.Active;

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

Elem:=Dimen.Elements;

i:=Elem.Owner(57);

End Sub Main;

After executing the example the "i" variable contains the number of the element that is a parent of the element with the 57 index. Repository object identifier: D_TO.

See also:

IDimElements