IDimSelection.SelectSiblings

Syntax

SelectSiblings(Element: Integer);

Parameters

Element is the dictionary element on the level, which elements should be added to the selection.

Description

The SelectSiblings method adds the elements of the level containing the Element element. Elements are added within their parent element.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Dimen: IDimInstance;
    Selection: IDimSelection;
Begin
    MB:=MetabaseClass.Active;
    Dimen:=MB.ItemById("D_TO").Open(NullAs IDimInstance;
    Selection:=Dimen.CreateSelection;
    Selection.SelectSiblings(11);
End Sub UserProc;

After executing the example all the elements at the same level with the 11th element are added to the Selection selection.

See also:

IDimSelection