IDimensionViewer.EndDate

Syntax

EndDate: DateTime;

EndDate: System.DateTime;

Description

The EndDate property determines the period end of data range.

Comments

It is used on working with selection of elements of calendar dimension in the By Levels Only mode.

Example

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. As the source for UiDimension calendar dictionary is selected and for DimensionTree - UiDimension.

Add a link to the ExtCtrls system assembly.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
    DimensionTree1.StartDate := DateTime.Compose(
2004020215001500);
    DimensionTree1.EndDate := DateTime.Compose(
2012020215001500);
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:

IDimensionViewer