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)...
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)...