Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
This is a weird one...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00122007
Message ID:
00122078
Vues:
16
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform