Timer Mode Problem

I have this code in a button’s action event:

ElapsedTimeTimer.mode = Xojo.Core.Timer.Mode.Multiple

When I run the program an error occurs. It says “This item does not exist.” and the “Timer.Mode” portion of the line is highlighted. What am I doing wrong here? I copied the code from the documentation.

It should be:

ElapsedTimeTimer.mode = Timer.Modes.Multiple

(note the plural Modes)

Sorry about that. I’ve corrected the doc page.

Thank you both.