procedure Init wait window 'Before DODEFAULT' llReturn = dodefault() wait window 'DODEFAULT returned ' + transform(llReturn) wait window 'This.HadError = ' + transform(This.HadError) return llReturn endproc procedure Error(nError, cMethod, nLine) wait window transform(nError) + chr(13) + cMethod dodefault(nError, cMethod, nLine) endprocNote that adding .H files to the project does nothing since those files are used at compile time, not runtime. Nor does having an ON ERROR, since _ReportListener has its own Error method, which overrides ON ERROR.