Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to recover from error
Message
De
05/06/1998 16:01:40
 
 
À
05/06/1998 15:56:46
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00105356
Message ID:
00105358
Vues:
30
>Currently, if my user gets an error, they must abort the program. This throws them completely out of the system. Not knowing what kind of an error it was, I do this to play it safe. Is there any way to safely return them to some previous point in the program so that they don't have to re-login and start from scratch?
>
>Thanks,
>Elyse

If you trap program errors, you can always add Ignore there.
*** the simplest Ignore
lErrorflag=.f.
cError=on("error")
on error lErrorflag=.t.
*** some code here
***
***
on error &cError.
if lErrorflag=.t.
 if not messagebox("ignore the error",4+32)=6
   *** close application here
 endif
endif
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform