IDimSelection.DeselectAll

Syntax

DeselectAll;

Description

The DeselectAll method deletes all dictionary elements from selection.

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.SelectChildren(11,True);
    Selection.SelectChildren(30,True);
    Selection.DeselectAll;
End Sub UserProc;

After executing the example all dictionary elements are removed from the Selection selection.

See also:

IDimSelection