Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handling
Message
From
30/05/2018 01:27:38
Walter Meester
HoogkarspelNetherlands
 
 
To
30/05/2018 01:19:33
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 10
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01660437
Message ID:
01660439
Views:
69
>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,
Previous
Reply
Map
View

Click here to load this message in the networking platform