Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping for open file dialog
Message
From
13/03/2002 08:37:07
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Trapping for open file dialog
Miscellaneous
Thread ID:
00632018
Message ID:
00632018
Views:
56
Using VFP7.

I have an ON ERROR routine in my application that traps for errors. However, there is one case where my ON ERROR does not trap for an error. Ir is when I issue a SQL select statement and the table in the FROM clause is not open or in the path.

For example:
ON ERROR DO myerrproc
SELECT * FROM MyTableThatDoesNotExist
***

When this gets code is run, a VFP open file dialog appears. How can I avoid having this dialog appear?

I know that I should ensure that the table in the FROM clause is valid, but how can I ensure that my ON ERROR routine gets called instead of the open file dialog?

Thanks,

Jerryt
Next
Reply
Map
View

Click here to load this message in the networking platform