TimeSelector.RefreshTimes() method
- Last UpdatedJul 19, 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.
Note: This method does not work if the UpdatetoCurrentTime property value is TRUE.
Syntax
AlarmClient.TimeSelector.RefreshTimes(TriggerEvent);
Example
dtag = 1;
AlarmClient.TimeSelector.RefreshTimes(dtag);