>> 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
Paul
We are not working with procedural code, but object's error handler and form's error handler.
It is a bit different on when something takes control and reports the error or passes it on up.
Bret
Bret Hobbs
"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope