IMetaHierarchyLevels.Leaf

Syntax

Leaf: IMetaHierarchyLevel;

Description

The Leaf property returns a leaf level of the collection. Leaf level is a level that does not have child levels.

Example

Executing the example requires that the repository contains a time series database with the OBJ_FC identifier.

Sub Main;

Var

Mb: Imetabase;

Rubr: IRubricator;

Facts: IMetaDictionary;

i: Integer;

Hierarchy: IMetaHierarchy;

HLevels: IMetaHierarchyLevels;

HLev: IMetaHierarchyLevel;

Begin

Mb := MetabaseClass.Active;

Rubr := MB.ItemById("OBJ_FC").Bind As IRubricator;

Facts := Rubr.Facts;

Hierarchy := Facts.DefaultHierarchy;

HLevels := Hierarchy.Levels;

Debug.WriteLine(Leaf level: + HLevels.Leaf.Name);

For i := 0 To HLevels.Count - 1 Do

HLev := HLevels.Item(i);

Debug.WriteLine(Level + i.ToString + : + HLev.Name);

End For;

End Sub Main;

After executing the example, information about the current time series database hierarchy is displayed in the console window.

See also:

IMetaHierarchyLevels