ILaner.CalendarSelection

Fore Syntax

CalendarSelection: IDimSelection;

Fore.NET Syntax

CalendarSelection: Prognoz.Platform.Interop.Dimensions.IDimSelection;

Description

The CalendarSelection property returns the calendar selection used in the workbook.

Comments

To edit start and end dates of workbook, use the ILaner.StartDate and ILaner.EndDate properties.

Fore Example

Executing the example requires a form containing the LanerBox component with the LanerBox1 identifier and the UiErAnalayzer component with the UiErAnalayzer1 identifier that is a data source for LanerBox1. Workbook of the time series database must be loaded to UiErAnalyzer1.

Add a link to the Dimensions system assembly.

Sub UserProc;
Var
    EaxAn: IEaxAnalyzer;
    Laner: ILaner;
    Selection: IDimSelection;
    s: String;
Begin
    // Get object for executing operations with workbook
    EaxAn := UiErAnalyzer1.ErAnalyzer;
    Laner := EaxAn.Laner;
    // Get calendar dimension selection
    Selection := Laner.CalendarSelection;
    // Cast the selection to string type
    s := Selection.ToString;
    // Output the selection to the console window
    Debug.WriteLine(s);
End Sub UserProc;

After executing the example the console window displays the calendar selection used in the workbook.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Dimensions;
Imports Prognoz.Platform.Interop.Laner;

Sub UserProc();
Var
    EaxAn: IEaxAnalyzer;
    Laner: ILaner;
    Selection: IDimSelection;
    s: String;
Begin
    // Get object for executing operations with workbook
    EaxAn := uiErAnalyzerNet1.ErAnalyzer.ErAnalyzer;
    Laner := EaxAn.Laner;
    // Get calendar dimension selection
    Selection := Laner.CalendarSelection;
    // Cast the selection to string type
    s := Selection.ToString(""", "False);
    // Output the selection to the console window
    System.Diagnostics.Debug.WriteLine(s);
End Sub UserProc;

See also:

ILanerSerie