IndexOfDerivedType(Type: LnDerivedSerieType): Integer;
Type. The child series type.
The IndexOfDerivedType method returns the index of the child series of defined type. If the calculated series does not have the child series of a defined type, the method returns -1.
Executing the example requires a form with the Button1 button, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 which is used as a data source for TabSheetBox. UiErAnalyzer1 must contain the working area of the time series database that includes the calculated series.
Click the button to start executing this example.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
ErAn: IEaxAnalyzer;
Laner: ILaner;
Serie: ILanerSerie;
CalculateSerie: ILanerCalculateSerie;
i, ind: Integer;
Begin
ErAn := UiErAnalyzer1.ErAnalyzer;
Laner := ErAn.Laner;
For i := 0 To Laner.Series.Count - 1 Do
Serie := Laner.Series.Item(i);
If Serie.Kind = LnSerieKind.Calculate Then
CalculateSerie := Serie As ILanerCalculateSerie;
ind := -1;
ind := CalculateSerie.IndexOfDerivedType(LnDerivedSerieType.DUpperConfidenceLevel);
If ind <> -1 Then
Debug.WriteLine("The remainders series index: " + ind.ToString);
End If;
End If;
End For;
End Sub Button1OnClick;
After executing this example the index of the child remainders series is displayed in console windows.
See also: