Take a look at the Application.OnException event. I think that'll do
what you're looking for.
Cheers,
Kerry S
--- Tony Sinclair <[EMAIL PROTECTED]> 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
>
>
_______________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com.au address at http://mail.yahoo.com.au
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz