InvertAll;
The InvertAll method inverts dictionary selection.
Sub Main;
Var
MB: IMetabase;
Dimen: IDimInstance;
Selection: IDimSelection;
Begin
MB:=MetabaseClass.Active;
Dimen:=MB.ItemById("D_TO").Open(Null) As 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: