Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble With Errors
Message
De
15/09/1998 11:10:16
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
14/09/1998 23:48:44
David Turnedge
Turnedge Associates
Sydney, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00136581
Message ID:
00136758
Vues:
21
Do you use an application object? If you want to shut down an application in mid-form, it seems to me that you would need to do quite a bit more than CLEAR EVENTS. For example, since not all errors are necessarily fatal, you would need to probably cancel, as Jayesh says. But you would also need to release any object references that got created during the life of the form.

There has been many threads on error handling in several of the groups. You might want to search on www.dejanews.com (and do a power search).

Also, you might look at using ASSERT. Barbara Paltiel told me about it...it had always escaped my attention < g >. But it's really useful.

>I'm trying to capture all the anticipated errors in my programs and, for the errors that slip through, I have an ON ERROR procedure called BadError:
>
>PROCEDURE BadError
>
>=MESSAGEBOX(error message and number code here)
>CLEAR EVENTS
>
>ENDPROC
>
>The only problem is that CLEAR EVENTS doesn't clear events - the program continues to run as though nothing happened after the message box is displayed.
>
>Any ideas how to force my program to quit back to Windows?
>
>David Turnedge
>Sydney, Australia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform