IDimSelection.SelectedCount

Syntax

SelectedCount: Integer;

Description

The SelectedCount property returns the number of elements in selection.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Dimen: IDimInstance;
    Selection: IDimSelection;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    Dimen:=MB.ItemById("D_TO").Open(NullAs IDimInstance;
    Selection:=Dimen.Elements.Children(10).Selection;
    i:=Selection.SelectedCount;
End Sub UserProc;

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

See also:

IDimSelection