Hello
Hello,
got a question for 10.2.3
This Code works well for XE7 but in 10.2.3 i get E2008 Error (Incompatible type)
type
THelper = record
class procedure TryCatchExecute(AProc: TProc);static;
end;
{ THelper }
class procedure THelper.TryCatchExecute(AProc: TProc);
begin
try
AProc(T); <-- this does not work
except on E: Exception do
// do some handling
end;
end;
got a question for 10.2.3
This Code works well for XE7 but in 10.2.3 i get E2008 Error (Incompatible type)
type
THelper = record
class procedure TryCatchExecute
end;
{ THelper }
class procedure THelper.TryCatchExecute
begin
try
AProc(T); <-- this does not work
except on E: Exception do
// do some handling
end;
end;
Jeroen Wiert Pluimers Currently i have no concret example. Found this while migrate some code from XE7 to 10.2 :)
ReplyDeleteI wrote that this code works well ... I meant it is compiling without error
Thanks for support guys :)
ReplyDeleteWorks well and compiles without error are completely different thing.
ReplyDelete