IDimSelection.SelectedCount

Syntax

SelectedCount: Integer;

Description

The SelectedCount property returns the number of elements in selection.

Example

Sub Main;

Var

MB: IMetabase;

Dimen: IDimInstance;

Selection: IDimSelection;

i: Integer;

Begin

MB:=MetabaseClass.Active;

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

Selection:=Dimen.Elements.Children(10).Selection;

i:=Selection.SelectedCount;

End Sub Main;

After executing this "i" example variable contains the number of the Selection elements.

See also:

IDimSelection