GetMembers(Position: IMetaHierarchyPosition): IMetaMembers;
Position. Position of elements in hierarchy.
The GetMembers method returns elements located in the specified position.
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;
RootPosition: IMetaHierarchyPosition;
Members: IMetaMembers;
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);
RootPosition := HInstance.RootPosition;
Members := HInstance.GetMembers(RootPosition);
End Sub Main;
After executing the example the Members variable contains root elements of factor dictionary.
See also: