Hi all,
In codeunit 230 GenJnlManagement, there is a global variable called LastGenJnlLine, and in the function CalcBalance, there is also a parameter called LastGenJnlLine.
How does that work? In the scope of the CalcBalance function, does the name LastGenJnlLine refer to the global variable or the local parameter?
BR Emerik
0
Answers
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I would normally think that best practice would be NOT to call local and a global variables the same thing. Don't you agree, or are there some special scenarios, where this practice actually makes good sense?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav