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 series index based on its name, use the IEmSeries.ItemIndexByName method.
To execute the example, add a link to the Modeller system assembly.
The example is a procedure that contains one input parameter ExprMod that is an object that determines express modeling parameters.
Sub SeriesInfo(ExprMod: IExpressModeller);
Var
Series: IEmSeries;
Serie: IEmSerie;
i: Integer;
Begin
Series := ExprMod.Series;
If Series.Count > 0 Then
For i := 0 To Series.Count - 1 Do
Serie := Series.Item(i);
Debug.WriteLine("Name: " + Serie.DisplayName);
End For;
Series.Clear;
End If;
End Sub SeriesInfo;
Example execution result: the console window displays names of all source series of the express modeling, then all series will be removed.
The example is a procedure that contains one input parameter ExprMod that is an object that determines express modeling parameters.
Imports Prognoz.Platform.Interop.Modeller;
…
Public Shared Sub SeriesInfo(ExprMod: IExpressModeller);
Var
Series: IEmSeries;
Serie: IEmSerie;
i: Integer;
Begin
Series := ExprMod.Series;
If Series.Count > 0 Then
For i := 0 To Series.Count - 1 Do
Serie := Series.Item[i];
System.Diagnostics.Debug.WriteLine("Name: " + Serie.DisplayName);
End For;
Series.Clear();
End If;
End Sub SeriesInfo;
Example execution result: the console window displays names of all source series of the express modeling, then all series will be removed.
See also: