Win10 LO 7.3.7.3 HSQL 2.61
Hello,
I have a form which I want to autoclose after a certain time using a modified macro given some time ago.
Sub formExitTimer
rem get the secs from settings form
rem need a way to interrupt the loop exit if cancel button is pressed
iSeconds = 600
t = timer +iSeconds
do
loop until t <= timer
msgbox “now do exit procedures…”
'auto save, close stuff…
exit sub
End Sub
Code works well, no problems, I just would like to modify the code to break out of the loop if a button on the form is clicked to stop the countdown.
Thinking of using some boolean such as once the button is clicked - stp=true
Not sure how to implement this, would it be a loop in a loop sort of thing?
Appreciate any pointers, thanks