Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trapping for open file dialog
Message
De
13/03/2002 08:37:07
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Trapping for open file dialog
Divers
Thread ID:
00632018
Message ID:
00632018
Vues:
58
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform