IEmSeriesList.Item

Fore syntax

Item(Index: Integer): IEmSerie;

Fore.NET syntax

Item[Index: integer]: Prognoz.Platform.Interop.Modeller.IEmSerie;

Parameters

Index. Data series index.

Description

The Item property returns series from the collection based on the specified index

Comments

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.

Fore example

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.

Fore.NET example

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:

IEmSeriesList