RTC Forums
November 24, 2024, 04:06:55 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Login
Register
RTC Forums
>
Subscription
>
Support
>
TRtcTimer and wait interval
Pages: [
1
]
« previous
next »
Print
Author
Topic: TRtcTimer and wait interval (Read 4253 times)
ISIGest
RTC Expired
Posts: 121
TRtcTimer and wait interval
«
on:
May 07, 2015, 03:42:30 PM »
Hi Danijel, I use TRtcTimer in my application but I need to change after first event tick the timer interval.
How can I do that?
Logged
ISIGest
RTC Expired
Posts: 121
Re: TRtcTimer and wait interval
«
Reply #1 on:
May 07, 2015, 03:54:17 PM »
I try to re-enable the timer with another Wait param....this is correct?
Logged
D.Tkalcec (RTC)
Administrator
Posts: 1881
Re: TRtcTimer and wait interval
«
Reply #2 on:
May 07, 2015, 03:57:11 PM »
The same way you start the timer, by using the
Enable
class procedure.
Enable
class procedure will reset the timer and set a new timer interval. If you need to reset the timer without changing the interval, use the
Reset
class procedure.
Disable
class procedure disables the timer (it won't trigger anymore until enabled again), while leaving the TRtcTimer instance in tact. And the
Stop
class procedure stops the timer and destroys the TRtcTimer instance.
PS. This is also explained in the Help file and in the source code (class interface comments).
Best Regards,
Danijel Tkalcec
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Dashboard
-----------------------------
=> General
=> 3rd-Party
=> Quick Start
-----------------------------
Subscription
-----------------------------
=> Support
Loading...