IPivotDimNamings.Remove

Syntax

Remove (Index: Integer): Boolean;

Options

Index is a name index in the collection.

Description

The Remove method deletes a name from the collection by the assigned index and returns the result of operation. True - successful deletion, False - deletion 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.

Example

Executing the example requires a form with the Button1 button on this 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:

IPivotDimNamings