11 May
1998
11 May
'98
7:52 a.m.
Frank Heckenbach wrote:
Is there a way to get the exception that was caught into a variable or so? Something like (fantasy syntax):
On Foo : EAnotherException do Something.With (Foo.ErrDevice);
Frank, your "fantasy" syntax is right. In Delphi: try { do something that might raise an exception } except on Foo : Exception DO ShowMessage(Foo.Message) end Where "Foo" is an instance of the Exception class. There is no need to declare "Foo" as a variable first. Achim