Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

Posting routines - why not work directly on Rec?

$
0
0
Hi
Can anyone explain the pattern used in say codeunit 80, 81 etc:

SalesHeader.COPY(Rec);
Code;
Rec := Salesheader,


Why not work directly with 'Rec'? Are there some technical reasoning for doing like this, or is it just a matter of pattern?? If it's a question of encapsulation of the Code-function, we could call the function with Rec as a VAR-parameter (the 'Salesheader' variable should not be Global in my opinion)...

Viewing all articles
Browse latest Browse all 10032

Trending Articles