Can someone explain how the timers actually work?
If I enable a timer in a sub it seems like the code continues to execute next instructions/statement. I would have thought when I wrote timer1.enable, it would exit the sub (and wait according to the interval I set it) and do the code I wrote in Timer1-tick sub and then return to the original sub and execute next statement.
Also, when should I use DoEvents and how does it actually work?
I need to implement a sleep-function (lasting a second or so). I know that the Threading-library includes a sleep-function but I read it should be avoided since Android could force-close my app.
I am bit confused. Anyone who wants to enlighten me a bit?
thanks.
If I enable a timer in a sub it seems like the code continues to execute next instructions/statement. I would have thought when I wrote timer1.enable, it would exit the sub (and wait according to the interval I set it) and do the code I wrote in Timer1-tick sub and then return to the original sub and execute next statement.
Also, when should I use DoEvents and how does it actually work?
I need to implement a sleep-function (lasting a second or so). I know that the Threading-library includes a sleep-function but I read it should be avoided since Android could force-close my app.
I am bit confused. Anyone who wants to enlighten me a bit?
thanks.