Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to catch an error within an error handler in VFP6
Message
De
10/11/2004 19:21:08
James Chan
Objectmastery Pty Ltd
Hawthorn, Australie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00959865
Message ID:
00960250
Vues:
12
This would mean I have to add the error traping code in all programs. Is there a more generic way?

I currently have an ErrorTrap() rountine and set
on error do ErrorTrap()
Things are generally ok until something changed (e.g. network drive map changed etc) which cause some lines in ErrorTrap() failed. What I need is to trap those errors within ErrorTrap(). Any idea?
----

> There is no sucha a exception handler in VFP 6. But You can manage it by old & tesed way:
old_error = ON("ERROR")
fl_error  = .f.
ON ERROR fl_error  = .t.
Do Whatevr You want
ON ERROR &old_error
IF fl_error
   ** Manage Error here
ENDIF
James Chan
ObjectMastery Pty Ltd
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform