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