GetChartEndTime Method Example

The following example returns the chart's end time, which is displayed in a text object.

First, insert a object. Then, add an XYChart (XYChart1). Next, add a pushbutton and add the following script to its onclick event. In run mode, click on the pushbutton and the end date will be displayed in the text box.

Text1.Caption = XYChart1.GetChartEndTime