Item (Index: Integer): IPivotDimNaming;
Index - name index in the collection.
The Item property returns a name from the collection by the assigned index.
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;
Naming: IPivotDimNaming;
S: String;
Begin
Eax := UiErAnalyzer1.ErAnalyzer;
Pivot := Eax.Pivot;
PivotDim := Pivot.Dimensions.Item(0);
NamS := PivotDim.Namings;
Naming := NamS.Item(0);
S := Naming.Expression.AsString;
End Sub Button1OnClick;
After executing the example, the "S" variable stores the first expression that determines the first dimension elements name.
See also: