General information
Title:
Trapping for open file dialog
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only