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

See also:

ILanerSerie