ILaner.CalendarSelection

Syntax

CalendarSelection: 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.

Example

Executing the example requires a form with the following components: the LanerBox component named LanerBox1, and the UiErAnalyzer component named UiErAnalyzer1. The UiErAnalyzer component is a data source for LanerBox1. A working area of the time series database should be loaded to UiErAnalyzer.

Add links to the Dimensions and Laner system assemblies.

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.

See also:

ILanerSerie