难道是:
var
b: Boolean;
begin
b := True;
try
b := ObjectHelper.ToBoolean(ObjectHelper.CallMethod(CurrentFunc.MainForm, 'CanFlowAbortTask', []));
except
end;
actFlowAbortTask.Enabled := (CurrentFlowControl <> nil) and
(CurrentFlowControl.CanAbortTask) and b;
end;