Xojo.Core.Timer replacement for reset

What is a replacement for reset? On the old framework it was easy to restart a timer.

Change the mode to Off and then back to the state you want.

What about cancel or is that impractical?

And remember the beauty of Xojo’s extends keyword - you can write your own function to get back the missing feature.

Something like this:

Sub Reset(extends t as Xojo.Core.Timer)
 dim oldMode as integer = t.mode
 t.mode = timer.modeOff
 t.mode = oldMode
End sub

Thanks. I have had a problem wrapping my head around Extends.
It’s better now.