Building an app in work and need some expert assistance.
I have a GUI with a start/stop button. When I click it, it executes a function. This function reads a log and returns a status. I am using:
$interval is just a refresh time like 10 secs, 20 secs etc.
If clicked a second time, I want it to STOP doing what it's doing. I'm not sure how to do this. The alternative is to just exit but I'd rather stop and remain in app.
Any help appreciated.
Thanks.




