716 views
in GUI Development by
Hi, I am having an issue with timers in V9.20.

If I use Timer.Enabled = true and Timer.Enabled = false, everything is fine.

As soon as I use Timer.restart( 0, xxx ), I cannot get the timer to stop, either with Timer.Enabled = false or Timer.StopTimer.

I have used debug traces to ensure it is not being re-triggered.

1 Answer

0 votes
by

Hello Phil,

the method restart() is an internal method not intended to be used and the method is not documented. In order to restart a timer, just set the property Enabled to the value false and true:

Timer.Enabled = false;
Timer.Enabled = true;

See also our documentation Start, stop and restart the Timer object.

Does it help you further?

Best regards

Paul Banach

by
Yes, that explains it.

Unfortunately I have used it in many places, successfully in most of them.

I will strip it out and use the correct method.

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...