Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to prevent app quit on error
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01501996
Message ID:
01502000
Views:
69
>>>Hi All,
>>>i am using below codes for error handling top my start.prg at my app is there another way to continue to app when error occured... just show error message and ask to user "Do You Want to Continue or Exit" etc...
>>>
>>>or how would be try..catch..finally supported error handling routine ?
>>>
>>>TIA
>>>
>>>
>>>On Error Do ErrorHandlerViaForm With  Error( ), Lineno( ), Program( ), Message(), Message(1) 
>>>
>>
>>The code you used should work fine.
>
>Yes its working but i dont want to quit from app as well as via retry etc...

In your error routine you can try to examine the severity of the error and either retry, return to master or quit the application.

Mike Asherman has put his Error Handler into public domain http://www.ideaxchg.com/ix07/bymda/mdav0012.htm as well as you can check Remote Debugger by Anton Oleynic here in the Downloads section Remote Debugger 1.6 Download #29837
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform