Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stop a procedure

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I have a procedure for construct fractals curves.
How is it possible to stop the procedure during
the execution and stay on the same sheet ?

Excuse my approximate english
Serge Garneau
garnote@globetrotter.qc.ca
 
Assumptions:
1. the procedure you are using to produce the fractals curve is some kind of loop.

You can have a form with a cancel/stop button displayed whilst the processing is happening. Put a DoEvents statement inside the loop. At the top of the loop check a variable and if false exit the procedure. On click of the stop/cancel button, set the variable to false (initially it should start as true)

Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top