Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error handling
Message
De
30/05/2018 01:27:38
Walter Meester
HoogkarspelPays-Bas
 
 
À
30/05/2018 01:19:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 10
Database:
Visual FoxPro
Divers
Thread ID:
01660437
Message ID:
01660439
Vues:
70
>Hi All,
>
>I would like to have an Global Error Handling in the Application. So Whenever there is an unexpected error, the system will prompt error message and close all forms (typically Modal Form) and quit program.
>
>May I know if anyone here can advise ?
>
>Thank you.


Build around your READ EVENTS
TRY
   READ EVENTS

CATCH TO oErr
  … Whatever you need to do to display and log the error

ENDTRY
You can even run this is a loop so that your application is able to recover from an error

Walter,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform