Hi,
I have function to generate log files. Depending upon the number of log files that has to be produced; It may take a while to produce all the log files. If I change my mind in the middle about cancelling the process I want to assign the button to stop the process. So what I need to do is while running the Sub “Generatelogs” I need to keep looking if the button has been pressed and then if it has been pressed, I can exit the Sub.
Is this the right way of doing it? If so how to detect the stop button has been pressed, from outside the function of that button click event?
I have function to generate log files. Depending upon the number of log files that has to be produced; It may take a while to produce all the log files. If I change my mind in the middle about cancelling the process I want to assign the button to stop the process. So what I need to do is while running the Sub “Generatelogs” I need to keep looking if the button has been pressed and then if it has been pressed, I can exit the Sub.
Is this the right way of doing it? If so how to detect the stop button has been pressed, from outside the function of that button click event?
Comment