SeriesList: ILanerSerieList;
SeriesList: Prognoz.Platform.Interop.Laner:ILanerSerieList;
The SeriesList property returns collection of workbook series.
The returned collection enables the user to add and remove elements.
Executing the example requires a workbook with the WORKBOOK_SERIES identifier that contains several series.
Add links to the Express, Laner and Metabase system assemblies.
Sub UserProc;
Var
mb: IMetabase;
WbkObj: IMetabaseObject;
EaxAn: IEaxAnalyzer;
Laner: ILaner;
Table: ILanerTable;
SeriesList: ILanerSerieList;
Begin
// Get workbook
mb := MetabaseClass.Active;
WbkObj := mb.ItemById("WORKBOOK_SERIES").Bind;
EaxAn := WbkObj As IEaxAnalyzer;
Laner := EaxAn.Laner;
// Get data table
Table := Laner.Execute;
// Get series collection
SeriesList := Table.SeriesList;
// Output the number of columns in the collection
Debug.WriteLine("Number of workbook series " +
WbkObj.Name + "»: " + SeriesList.Count.ToString);
End Sub UserProc;
After executing the example the console window displays the number of series of the WORKBOOK_SERIES workbook.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Laner;
…
Public Shared Sub Main(Params: StartParams);
Var
mb: IMetabase;
WbkObj: IMetabaseObject;
EaxAn: IEaxAnalyzer;
Laner: ILaner;
Table: ILanerTable;
SeriesList: ILanerSerieList;
Begin
// Get workbook
mb := Params.Metabase;
WbkObj := mb.ItemById["WORKBOOK_SERIES"].Bind();
EaxAn := WbkObj As IEaxAnalyzer;
Laner := EaxAn.Laner;
// Get data table
Table := Laner.Execute();
// Get series collection
SeriesList := Table.SeriesList;
// Output the number of columns in the collection
System.Diagnostics.Debug.WriteLine("Number of workbook series " +
WbkObj.Name + "»: " + SeriesList.Count.ToString());
End Sub;
See also: