Xojo Timer


MyTimer.Mode = Timer.ModeSingle
MyTimer.Enabled = False
MyTimer.Enabled = True

the same as

MyTimer.Mode = Timer.ModeOff
MyTimer.Mode = Timer.ModeSingle

Will both reset MyTimer to 0 before starting again?

If you want a reset why not just call reset ?

whats the goal here ?

1 Like

Understanding. :blush:

1 Like

Just seeing if both ways will always reset to 0 or if perhaps .enable might not reset the counter? It’s these subtle differences that can cause difficult to find bugs, if I just assume that one is the same as the other.

I dont believe they intentionally do the same thing
But I cant say I know for sure