Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
This is a weird one...
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00122007
Message ID:
00122078
Views:
15
>Ok, I'm totally baffled. I've just written a small error handler routine that is real simple.
>
>ON ERROR DO FORM ErrHand with message(),program(),lineno()
>
>My form then displays the error and does a controlled shutdown of all tables or gives the user the ability to ignore the error if it is minor (Printer not ready, etc.). Pretty standard stuff. The only problem is that when I invoke ON ERROR DO FORM I get an error that does not occur with just ON ERROR. This happens when I try to use a table that does not have an attached CDX. I get an error 'Structural CDX Not Found'. This error DOES NOT occur if I just have ON ERROR as the default. Am I missing something here?
>
>I understand that the error event is another option but I have multiple forms and I don't really want to add a custom event handler to my base class unless that is my only option.
>
>AHWBGA!
>TIA!
>
>Kevin

It's one of those funny things, but your correct. If you have an on error statement,pointed to a .prg, the error goes to the OBJECT error handler, not the .prg. If you don't, it displays on the screen.
Glenn
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform