Type(Index: Integer): LanerBoxStatisticType;
Index. Statistics index.
The Type property returns type of a statistics based on its index.
Value of the Index parameter must fall within the range [0; ILanerResultsBoxStatistics.Count-1].
Executing the example requires a form, a button with the identifier Button1 positioned on this form, the LanerBox component, the LanerResultsBox component named LanerResultsBox1 and the UiErAnalyzer component used as a data source for LanerBox and LanerResultsBox. Workbook of the time series database must be loaded to UiErAnalyzer1.
This example is executed on clicking the button.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Results: ILanerResultsBoxResults;
Statistics: ILanerResultsBoxStatistics;
i: Integer;
Begin
Results := LanerResultsBox1.Results;
Statistics := Results.Statistics;
For i := 0 To Statistics.Count - 1 Do
If Statistics.Type(i) = LanerBoxStatisticType.Min Then
Debug.WriteLine(Statistics.Name(i) + " " + Statistics.Value(i));
End If;
End For;
End Sub Button1OnClick;
After executing this example the console window shows value of the Minimum statistics displayed on the Summary Statistics tab of the Calculation Results panel.
See also: