ItemByName(Name: String): IEmSerie;
ItemByName[Name: String]: Prognoz.Platform.Interop.Modeller.IEmSerie;
Name. Series identifier.
The ItemByName property returns series from collection based on its identifier
If the series with the specified identifier is missing from the collection, the method returns Null.
To execute the example, add a link to the Modeller system assembly.
Example is a procedure that contains one input parameter Sett that is an object that determines the Chow Stability Test method parameters.
Sub SeriesList(Sett: IEmChowTestSettings);
Var
List: IEmSeriesList;
Serie: IEmSerie;
i: Integer;
Begin
List := Sett.Explanatories;
If List.Count > 0 Then
Serie := List.ItemByName("X2");
If Serie <> Null Then
i := List.ItemIndexByName("X2");
List.Remove(i);
End If;
End If;
End Sub SeriesList;
Example execution result: the search of the series with the X2 identifier is executed in the explained series collection of the Chow Stability Test method, if the series is found, it is removed.
Example is a procedure that contains one input parameter Sett that is an object that determines the Chow Stability Test method parameters.
Imports Prognoz.Platform.Interop.Modeller;
…
Public Shared Sub SeriesList(Sett: IEmChowTestSettings);
Var
List: IEmSeriesList;
Serie: IEmSerie;
i: Integer;
Begin
List := Sett.Explanatories;
If List.Count > 0 Then
Serie := List.ItemByName["X2"];
If Serie <> Null Then
i := List.ItemIndexByName["X2"];
List.Remove(i);
End If;
End If;
End Sub SeriesList;
Example execution result: the search of the series with the X2 identifier is executed in the explained series collection of the Chow Stability Test method, if the series is found, it is removed.
See also: