>The problem is that when an error occurs in an object VFP always transfers control to the ERROR method of that object if it has code. Any ON ERROR commands in effect do not get consideration during this process. If the RETRY command is in the ERROR method the program goes into a tight endless loop of ERROR - RETRY - ERROR - RETRY etc..
>
>Am I missing something here? Do you have any other suggestions?
Bret,
In the error method of your form put this code;
IF
&& however you choose to determine this, I have a property of my application object that tells me
ERROR && the number of the error that caused the method to be called
ENDIF
You may have to put some more code inside the IF to either cancle the method or end the application or whatever else you want to do.