<div class="meta" robots="noindex">

</div>

Property

# Timer.Mode

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `Timer.RunMode<timer.runmode>` as a replacement.

</div>

## Description

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

## Notes

The following class constants are available:

| Class Constants | Description                                                           |
|-----------------|-----------------------------------------------------------------------|
| ModeOff         | The timer is off (the default when created in code).                  |
| ModeSingle      | The timer will fire once.                                             |
| ModeMultiple    | The timer will fire repeatedly (the default when added as a control). |

Setting <span class="title-ref">Mode</span> will restart the `Timer</api/language/timer>`, the same as calling `Timer.Reset<timer.reset>`, even if the value hasn't changed.

## Sample code

Set the <span class="title-ref">Mode</span> to Single:

``` xojo
Timer1.Mode = Timer.ModeSingle
```

## Compatibility

All project types on all supported operating systems.
