I'm trying to build a generic error handler. One of the errors I am trying to catch and take care of is 1001, where in case a suspend or set step on is left in the code, the error handler would handle this error by simply returning the focus back to the program at the following line of code (after the set step or suspend)
Couple of problems..
1. I am getting a completely different error than 1001 - I continue to get "Invalid file or path name" and it's the suspend or set step on that generates it, too. Anyone know why you would get that from a suspend or set step?
2. The errors that do get caught I simply send the user a message telling them that something went wrong and to call the helpdesk - but before sending the focus to the error handler, the regular foxpro error message is still coming up and when you cancel out of that THEN you get the error handler message that I created. Why would this happen?
My main focus right now is getting error 1001 handled to simply ignore the suspend or set step on commands.
I know I can do a much better job of this in version 8 but my company isn't planning to go to that for a while, so I need to stick with what is available in version 6, thanks.
Thank you all
Couple of problems..
1. I am getting a completely different error than 1001 - I continue to get "Invalid file or path name" and it's the suspend or set step on that generates it, too. Anyone know why you would get that from a suspend or set step?
2. The errors that do get caught I simply send the user a message telling them that something went wrong and to call the helpdesk - but before sending the focus to the error handler, the regular foxpro error message is still coming up and when you cancel out of that THEN you get the error handler message that I created. Why would this happen?
My main focus right now is getting error 1001 handled to simply ignore the suspend or set step on commands.
I know I can do a much better job of this in version 8 but my company isn't planning to go to that for a while, so I need to stick with what is available in version 6, thanks.
Thank you all