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:
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)