EndDate: DateTime;
The EndDate property determines the date, after which workbook values are not displayed.
If the EndDate value is not set, the end date of workbook data display is determined by the ILaner.EndDateParamId property.
If the EndDate and ILaner.EndDateParamId properties are set, the end date of workbook data display is determined by the last set property.
The date of data display end must be greater than that of data display start. To set the start date of workbook data display, use the ILaner.StartDate property.
The EndDate property affects only the data display in the workbook. To determine calculation options of a specific series, use the ILanerTransformPeriod interface.
Executing the example requires a form with the following components: the Button component named Button1, the LanerBox component named LanerBox1, and the UiErAnalyzer component named UiErAnalyzer1. UiErAnalyzer1 is a data source for LanerBox1. A workbook of the time series database should be loaded to UiErAnalyzer1.
The example is a handler of the OnClick event for the Button1 component.
Add links to the Express, ExtCtrls, Forms, Laner, and Tab system assemblies.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Analyzer: IEaxAnalyzer;
Laner: ILaner;
Begin
Analyzer := UiErAnalyzer1.ErAnalyzer;
Laner := Analyzer.Laner;
Laner.StartDate := DateTime.ComposeDay(1990, 02, 01);
Laner.EndDate := DateTime.ComposeDay(2015, 05, 01);
End Sub Button1OnClick;
After executing the example the workbook data display period is changed:
The period start - February 1st, 1990.
The period end - May 1st, 2015.
See also: