Hi!
What kind of stop you need?
You may:
stop it to show in debug trace window (Set Step On command),
suspend it without any debig windows (suspend command),
quit from application at all (quit or 'return to master'),
return to the method called (just return),
return to the called method and repeat command that caused error (Retry),
return to the special method skipping all commands in other methods (return to
)
Hope this helped.
>I'm trying to write an error handler function that'll stop a program that produced certain types of errors. I don't want my app to stop or exit, I only want to stop the execution of the function that caused the error after having displayed an error message. Here's how I wrote my function:
>
>>FUNCTION ErrorHandler(nError,cMethod,nLine)
>LOCAL lcErrorMsg,lcCodeLineMsg
>
> *Some code here
> IF nError = 13 THEN
> *Code that sends a message and then stops the execution
> *of the calling method
> ENDIF
>ENDFUNC
>
>
>So, in this particular case, I want my function to stop whenever I can't open a table (because everything else is going to fail if the table is not opened properly).
>
>Thanks in advance, Stephane.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.