IDimSelection.InvertAll

Syntax

InvertAll;

Description

The InvertAll method inverts dictionary selection.

Example

Sub Main;
    Var
    MB: IMetabase;
    Dimen: IDimInstance;
    Selection: IDimSelection;
Begin
    MB:=MetabaseClass.Active;
    Dimen:=MB.ItemById("D_TO").Open(NullAs IDimInstance;
    Selection:=Dimen.CreateSelection;
    Selection.SelectElement(11,False);
    Selection.SelectElement(30,False);
    Selection.InvertAll;
End Sub Main;

After executing the example the Selection selection contains all the dictionary elements, but for 11 and 30.

See also:

IDimSelection