Selection: IDimSelection;
The Selection property returns an object that contains selection of dictionary element group.
Sub Main;
Var
MB: IMetabase;
ElemGroup: IDimElementGroup;
Sel: IDimSelection;
i: Integer;
Begin
MB:=MetabaseClass.Active;
If MB.ItemById("D_TO").Children.Count<>0 Then
ElemGroup:=MB.ItemById("D_TO").Children.Item(0).Bind As IDimElementGroup;
Sel:=ElemGroup.Selection;
i:=Sel.SelectedCount;
End If;
End Sub Main;
After executing the example the "i" variable contains the number of selected elements in selection of the first group of dictionary elements.
See also: