[DUG] What is the difference by using following two methods?

Leigh Wanstead leighw at softtech.co.nz
Tue Aug 7 10:03:53 NZST 2007


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



More information about the Delphi mailing list