Item(Index: Integer): IEmSerie;
Item[Index: integer]: Prognoz.Platform.Interop.Modeller.IEmSerie;
Index. Data series index.
The Item property returns series from the collection based on the specified index
Indexation of the series in the collection is continuous and starts from zero.To get a series index by based on its name, use the IEmSeriesList.ItemByName method.
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 SList(Sett: IEmChowTestSettings);
Var
List: IEmSeriesList;
Serie: IEmSerie;
i: Integer;
Begin
List := Sett.Explanatories;
For i := 0 To List.Count - 1 Do
Serie := List.Item(i);
Debug.WriteLine(Serie.DisplayName);
End For;
List.Clear;
End Sub SList;
Example execution result: all the Chow Stability Test method explanatory series values are displayed in the console window that was specified in the input parameter, then all the explanatory series are 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 SList(Sett: IEmChowTestSettings);
Var
List: IEmSeriesList;
Serie: IEmSerie;
i: Integer;
Begin
List := Sett.Explanatories;
For i := 0 To List.Count - 1 Do
Serie := List.Item[i];
System.Diagnostics.Debug.WriteLine(Serie.DisplayName);
End For;
List.Clear();
End Sub SList;
Example execution result: all the Chow Stability Test method explanatory series values are displayed in the console window that was specified in the input parameter, then all the explanatory series are removed.
See also: