No but if you have for example declared any function in the codeunit , you can only call it as MyCodeunit.myfunction() but you cannot call it as CODEUNIT.myfunction.
with CODUNIT.RUN all global variables in the codeunit are cleared each time you run the codeunit.
With MyCodeunit.RUN the first time all global variables are cleared, but next calls WILL NOT clear them. They keep the same values as when the last call finished.
To clear the global variables, you need to do a CLEAR(MyCodeunit).
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Comments
with CODUNIT.RUN all global variables in the codeunit are cleared each time you run the codeunit.
With MyCodeunit.RUN the first time all global variables are cleared, but next calls WILL NOT clear them. They keep the same values as when the last call finished.
To clear the global variables, you need to do a CLEAR(MyCodeunit).
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!