AndyK
January 28th, 2000, 01:54 AM
If you are lazy to read detailed and confusing explanation then goto skip:
Ok I have Command2 and when I click it, my program starts to do whatever it's in Command2...long code, well I have timer,loop,for, etc. in Command2 now.....by pressing "STOP" (command3)I want kind of skip everything that wasn't yet "executed" in Command2.
P.S. I can't use timer and make it like timer1.enabled = false where timer has all the coding from command2 because to process everything in command2 my program needs around 3 mins (depends on user's input) and timer's interval doesn't support 3 mins so it will start all over in the middle of process of command2
skip:
Hope that wasn't confusing, but to sum everything up all I need is to have option to cancel everything my program is doing and basically make it as if it was just loaded...."fresh and clean" :)
Thank You
Ok I have Command2 and when I click it, my program starts to do whatever it's in Command2...long code, well I have timer,loop,for, etc. in Command2 now.....by pressing "STOP" (command3)I want kind of skip everything that wasn't yet "executed" in Command2.
P.S. I can't use timer and make it like timer1.enabled = false where timer has all the coding from command2 because to process everything in command2 my program needs around 3 mins (depends on user's input) and timer's interval doesn't support 3 mins so it will start all over in the middle of process of command2
skip:
Hope that wasn't confusing, but to sum everything up all I need is to have option to cancel everything my program is doing and basically make it as if it was just loaded...."fresh and clean" :)
Thank You