Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to recover from error
Message
From
05/06/1998 16:01:40
 
 
To
05/06/1998 15:56:46
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00105356
Message ID:
00105358
Views:
31
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform