Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conflict with internally generated error messages
Message
 
To
11/05/1998 13:33:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00098530
Message ID:
00098940
Views:
30
>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
Rhea,

ON ERROR sets an error handler up that will be called any time an error occurs after that line of code is executed. The ON ERROR routine is not local to the form or program in which it is issued. You need the errmsg to be a separate prg that all forms and all programs can see so when they encounter an error they can call that program.
Previous
Reply
Map
View

Click here to load this message in the networking platform