Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handling question
Message
From
06/07/2000 03:11:35
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00388620
Message ID:
00388729
Views:
9
Allan,

>In my application, I have a global error handler that traps the most 'common' types of errors. This code resides in my start-up program.. However, for any other errors, I'd like to inform the user that an unexpected error has occured (I know how to do this) and then close all open tables, databases and forms before exiting the application.

>Question, what is a good method for determining the open forms and open databases, tables and cursors - and then closing them?

the function AUSED() gives you an array with all open tables.
the _Screen.Forms collection refers to all open forms.

tip: roll back all open transactions before trying to close the tables involved in it.

There is a good error handling document available from www.stonefield.com


Walter,
Previous
Reply
Map
View

Click here to load this message in the networking platform