Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error trapping
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00147439
Message ID:
00147495
Vues:
25
>Hello All,
>I've created an inhouse wizard in
>VFP5 that can also be called as a function from
>another application. In this second
>functionality, I have had to create an error
>handler. Just as with other envoironmental
>issues, how can I find what the current error
>routine is so I can restore it when the wizard is
>done processing
>
>Thanks
>
>Sandy

Sandy,

At the begining of your wiuzard save the value returned from ON("ERROR"), then at the end set it back again;

LOCAL (or PRIVATE) lcError
lcError = ON("ERROR")

...

ON ERROR &lcError
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform