Hi
I didn't even know you could do the TObject thing. However it King of
makes sense. If you use Error : Tobject you are treating the exception
object passed in as a generic TObject (base class), so it would work but
you wouldn't have access to TException methods, like e.message.
Rob Martin
Software Engineer
phone +64 03 377 0495
fax +64 03 377 0496
web www.chreos.com
Wild Software Ltd
Leigh Wanstead wrote:
Good morning,
May I ask what is the difference by using following two methods?
try
...
except
on Error: TObject do
begin
...
end;
try
...
except
on E: Exception do
begin
...
end;
Why can TObject be an object in try except block?
TIA
Regards
Leigh
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe