DimensionDate(SlotIndex: Integer; ElementIndex:Integer): DateTime;
SlotIndex is an index of a slot in a header.
ElementIndex is an index of elements in a header.
The DimensionDate property returns the calendar point, that corresponds to defined element in the title head.
Executing the example requires a form with the Button1 button, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 which is used as a data source for TabSheetBox. Workbook of the time series database must be loaded to UiErAnalyzer1.
Click the button to start executing this example.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
ErAn: IEaxAnalyzer;
Laner: ILaner;
Tbl: ILanerTable;
TopH: ILanerTopHeader;
Begin
ErAn := UiErAnalyzer1.ErAnalyzer;
Laner := ErAn.Laner;
Tbl := Laner.Execute;
TopH := Tbl.TopHeader;
Debug.WriteLine(TopH.DimensionDate(0, 0));
End Sub Button1OnClick;
After executing the example, console window displays the first workbook calendar point.
See also: