Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More on Cancel & Process stopping
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
More on Cancel & Process stopping
Miscellaneous
Thread ID:
00389492
Message ID:
00389492
Views:
43
Ok, I seem to be reading a bunch of requests for information to stop a process. I have the same dilemma but, as mentioned here, need to limit use of DOEVENTS because of the time overhead.

I have a form which accepts parameters and has a button with .Cancel = .T. It also has a button to kick off a form method which instantiates an object which runs a large time consuming process. I need to be able to let a user hit ESC or (the cancel button is currently not visible but can be if needed) click the button to halt the process. The code is something like this.

* Some form method
LOCAL loProcess

loProcess = NEWOBJECT(.......)

loProcess.DoProcess()

I need to be able interrupt the process. ESC does not register until control is returned to the form which is not acceptable. The loProcess object needs to be able in shut down immediately.

Any ideas will be greatly appreciated.

Thanks,
Steve Despres

PS And I apologize to UT members for not showing up much lately.
I'll try to be a bit more regular.
Next
Reply
Map
View

Click here to load this message in the networking platform