TimeSelector.RefreshTimes
- Last UpdatedOct 11, 2024
- 1 minute read
The TimeSelector.RefreshTimes method sets the time period for the query by updating the end time to current time and recalculates the start time based on the new end time and duration.
If you set the Boolean parameter to TRUE, the OnChange event is triggered if the time is updated.
Only use this method if the Update to Current Time option is cleared or the UpdateToCurrentTime property is FALSE. Otherwise, this method does not work.
Syntax
Trend01.TimeSelector.RefreshTimes(TriggerEvent);
Example
dtag = 1;
Trend01.TimeSelector.RefreshTimes(dtag);