> I have an error handler at the form level and all objects on the form pass
> errors they can`t handle up to the form to process. The form level error
> handler displays a form with pertinent information.
>
> This is all well an good for production, but in design mode I prefer the
> way VFP traps errors and gives me the option to suspend which
> automatically opens the debugger on the line of code that caused the
> error.
>
> Is there any way that I can simulate this behavior after my form has
> trapped the error? I.e. have a debug button on my error display form that
> when clicked will open the debugger on the line that caused the error
>
> RETRY doesn't work. What I really want is to be positioned on the offending
> line of code, not re-execute it.
Why not just have the error handling code be loaded, based on a variable
(I like using an environment variable)?
if not m.glDevelopment
on error ...
endif
/Paul