Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More on Cancel & Process stopping
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
More on Cancel & Process stopping
Divers
Thread ID:
00389492
Message ID:
00389492
Vues:
42
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform