Remove (Index: Integer): Boolean;
Index - name index in the collection.
The Remove method removes a name from the collection by the assigned index and returns the result of operation. True - successful removal, False - removal failed.
NOTE. At least one element should always be present in the names collection. If there are no elements left in the collection after the Remove method call, an element with empty expression is added to the collection.
Executing the example requires a form with the Button1 button on the form, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 that is a data source.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Eax: IEaxAnalyzer;
Pivot: IPivot;
PivotDim: IPivotDimension;
NamS: IPivotDimNamings;
Begin
Eax := UiErAnalyzer1.ErAnalyzer;
Pivot := Eax.Pivot;
PivotDim := Pivot.Dimensions.Item(0);
NamS := PivotDim.Namings;
NamS.Remove(0);
End Sub Button1OnClick;
The first name is removed from the collection after executing this example.
See also: