IMetaMember.Children

Syntax

Children: IMetaMemberChildren;

Description

The Children property returns children attributes of a hierarchy element.

Example

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

Sub Main;

Var

Mb: Imetabase;

Rubr: IMetabaseObject;

RubrInst: IRubricatorInstance;

Facts: IMetaDictionaryInstance;

Hierarchy: IMetaHierarchy;

HInstance: IMetaHierarchyInstance;

Mem: IMetaMember;

MemCh: IMetaMemberChildren;

Begin

Mb := MetabaseClass.Active;

Rubr := MB.ItemById("OBJ_FC").Edit;

RubrInst := Rubr.Open(Null) As IRubricatorInstance;

Facts := RubrInst.GetDictionary(RubricatorDictionary.Facts);

Hierarchy := Facts.Dictionary.DefaultHierarchy;

HInstance := Facts.OpenHierarchy(Hierarchy);

Mem := HInstance.Root;

MemCh := Mem.Children;

End Sub Main;

After executing the example the MemCh variable saves an object that contains child elements of hierarchy node.

See also:

IMetaMember