IPivotDimNamings.Clear

Syntax

Clear;

Description

The Clear method clears names collection.

NOTE. At least one element should always be present in the names collection. After the Clear method call, a new 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.Clear;

End Sub Button1OnClick;

After executing the example, the names collection is cleared.

See also:

IPivotDimNamings