IDimSelection.SelectChildren

Syntax

SelectChildren(Element: Integer; Recursive: Boolean);

Parameters

Element — a dictionary element, which child elements should be added to the selection.

Recursive — a parameter that determines whether child elements at the lower levels are added to the selection. If parameter value is True, all child elements at all levels are added. If parameter value is False, only child elements positioned one level below the Element element are added.

Description

The SelectChildren method adds child elements to selection.

Example

Sub Main;

Var

MB: IMetabase;

Dimen: IDimInstance;

Selection: IDimSelection;

Begin

MB:=MetabaseClass.Active;

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

Selection:=Dimen.CreateSelection;

Selection.SelectChildren(11,True);

Selection.SelectChildren(30,True);

Selection.SelectChildren(42,True);

Selection.SelectChildren(56,True);

End Sub Main;

After executing the example all child objects of the four elements are added to the Selection selection.

See also:

IDimSelection