something like
try
//do a bunch of stuff
except
handlerror
end;
do some other stuff....
??
If its app specific, see Kerry's post.
N
Tony Sinclair wrote:
>
> Hi all,
>
> I am wondering how I would go about setting up somthing like I have done
> before in VB which is a generic error message handler
>
> ------------------
>
> FindFirstTabExit:
> Exit Function
>
> FindFirstTabError:
> HandleError "findFirstTab", Error$, Err
> Resume FindFirstTabExit
>
> ------------------
>
> where HandleError is a procedure that either spits out a message box or
> data to a log file or dataset. Error$ is the error message returned by
> the application and Err is the error number. The string const is just
> the name of the function or procedure. Do I have to capture and specify
> for each error type eg On EDatabaseError do begin? or do I need to
> create my own decendant from TExceptionEvent?
>
> Thanks in adavnce
>
> Tony
>
> --
>
> Tony Sinclair
> Holliday Group Limited
> Christchurch
> New Zealand
>
> "I like deadlines. I especially like the
> sound they make as they go wizzing by."
>
> ---------------------------------------------------------------------------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz