From Xojo Documentation

Property (As Timer.RunModes )
aTimer.RunMode = newTimer.RunModesValue
Timer.RunModesValue = aTimer.RunMode

New in 2019r2

Supported on Desktop, Web, Console.

The interval at which the Run event will be executed. The default is Multiple for Timers added as a control. The default is Off for Timers created in code.


See RunModes for a list of possible modes.

Setting RunMode will restart the Timer, the same as calling Timer.Reset, even if the value hasn't changed.

Sample Code

Set the mode to Single:

Timer1.RunMode = Timer.RunModes.Single