* formMethod1() method thisform.lErrorOccurred = .f. thisform.lSuppressError = .t. x = "a" + 5 && this will throw an error, but will continue on... thisform.lSuppressError = .f. if thisform.lErrorOccurred activate screen ? program(),"Houston, we have a problem!" endif * end of method * form.error() method LPARAMETERS nerror,cmethod,nline if !this.lSuppressError return dodefault(nerror,cmethod,nline) && call Codemine form.error() method else * trap for specific error here, and call dodefault() if necessary thisform.lErrorOccurred = .t. endif>The code is within a method of an object on the form - and yes, I'm doing it for someone else who has CodeMine.