In general no, however you could set up the program to terminate sections of itself with the appropriate On Escape, OKL, KeyPreview or Error Handling routines. What exactly seems to be your problem - it's always easier to solve a particular situation, rather than a general one. Have you got so code that's not working right?
Just wondering. I have several spots in my program where I give an error message and just cancel the program. I have just recently switched to using an exe and have run into this issue. Probably shouldn't be an issue for most of my users, just for me.
Obviously a lot depends on the type of error that happens as to what you can do. You might want to read Doug Hennig's "classic" paper - 'Error Handling in Visual FoxPro (370K)' at
While it doesn't reference the newer TRY.. CATCH .. techniques of VFP 8.0, I can gaurantee it'll take a few readings to get your head around the technique, but it's worth it!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.