How could one reset the TTimer1 so even ontimer triggers, and the count restarted?
The Question is for Design Time command to act on Run-time.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I suppose you actually mean that
Then, to reset the timer, do
In my “RejbrandCommon.pas” standard library, I have actually defined
Then, every time I need to restart I timer, I just do
Of course, if you want the
OnTimerprocedure (e.g.Timer1Timer) to trigger prior to restart, you have to door define
(Of course, the last procedure,
TriggerAndRestartTimer, is not a method, and hence there is noSelf. However, most likely theTimer1Timerprocedure doesn’t care about theSenderproperty, so you can send just anything, such asnilinstead ofSelf.)