Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conflict with internally generated error messages
Message
De
11/05/1998 13:45:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
11/05/1998 13:33:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00098530
Message ID:
00098536
Vues:
24
>I inherited a Foxpro/Lan 2.0 application with no error trapping and I just recently added some error handling to some of the screens. Now sometimes users are getting an error message saying "file errmsg not found" The name of my error handling routine is errmsg. I have an ON ERROR command on a screen that has pushbuttons which open other screens that don't have the ON ERROR command. Is that what is causing the problem? Do I have to have error handling on all screens or none at all? Why do Foxpro's internally generated error messages not display when there is no error handling on a particular screen? Hope someone can help me. Thanks
Once you set errhandling routine with ON ERROR ... it's active until another ON ERROR .. is encountered. If you want to turn off it in screens, in setup code add a "ON ERROR" (set default error handling), and turn it on again where appropriate. Better yet keep your errhandler proc in proc file you set on entry so every time an error occurs it could be found.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform