Hi
Someone at my company has done a "run-time" (Client) upgrade of a Customers' NAV to R2... So no objects were changed...
Suddenly a certain button doesn't work anymore in RTC... If I run the functionality in the Classic client it works perfectly :-)
I have tested the functionality and If I change a certain line from
if Codeunit.run(XXXX) then;
to
Codunit.run(XXXX);
The code in the codeunit runs again (without any errors) in RTC... How can that be?
I am getting a little anxious because the if codeunit.run then; are used many places...
Thanks.
0
Comments
That is very strange.
It is the OnRun and it cannot be related to a return from a function. So, both the code should run in exactly the same way. If it was a function inside the CodeUnit which is returning a true or false, there may have been some different behavior after the return is captured and validated. But in this case there should not be anything different whether it is If Codeunit.Run then or Codeunit.Run. :?
Rgds,
Chn
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.