Timer & Sub Questions

I have two questions. The first is my attempted solution for my larger problem. Basically using subroutines to try to delay an action by say 1 second in my method/action.
When I use a sub, end sub I keep getting a syntax error. The code is pretty simple since I’m just trying to lear nit but I made a push button where the action is simply:
Sub MyMethod
MsgBox(“Hello World!”)
End Sub

and I keep getting a syntax error at End Sub.

ULTIMATELY what I’m trying to do is be able to use a Timer to delay an action by a set number of times. Based on: http://documentation.xojo.com/topics/user_interface/timer_lesson.html#Lesson_3:_Using_Timers_Without_previous_instantiation

It looks like I can do this with Xojo.Core.Timer.CallLater
I’m trying to keep the timer object within that specific chunk of code, instead of having a big global timer with multiple triggers (as my coworker is doing it now)


YOU don’t enter the END SUB line, Xojo does that for you
So all YOU type is the msgbox line