EndDate: DateTime;
EndDate: System.DateTime;
The EndDate property determines the period end of data range.
It is used on working with selection of elements of calendar dimension in the By Levels Only mode.
Executing the example requires a form containing the Button component with the Button1 identifier, the DimensionTree component with the DimensionTree1 identifier and the UiDimension component with the UiDimension1 identifier. A calendar dictionary is selected as a data source for UiDimension, and UiDimension is selected as a data source for DimensionTree.
Add a link to the ExtCtrls system assembly.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
DimensionTree1.StartDate := DateTime.Compose(2004, 02, 02, 15, 00, 15, 00);
DimensionTree1.EndDate := DateTime.Compose(2012, 02, 02, 15, 00, 15, 00);
End Sub Button1OnClick;
Imports Prognoz.Platform.Interop.ExtCtrls;
…
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Begin
DimensionTreeNet1.StartDate := DateTime.Parse("2.2.2004");
DimensionTreeNet1.EndDate := DateTime.Parse("2.2.2012");
End Sub;
After executing the example, clicking the button sets the period from 2004 to 2012.
See also: