Form A calls on SINGLE instance of a Codeunit and assigns 'RED' to a global text variable. Form B call an instance of the same Codeunit and assigns the same global variable 'BLUE'. Form A then calls another function in the same Codeunit and retrieves the value of the global variable. What is the value?
a) Red * (chose a) <=
b) Blue (or
<=
c) Null
d) You can't do this
Because it is a Single instance I have been told answer is A
BUT
Form A then calls another function in the same Codeunit and retrieves the value of the global variable
So would this make the answer B. I am so confused.
Comments
How To pass parameters between objects (forms, reports, ...)? Revisited
http://www.mibuso.com/howtoinfo.asp?FileID=9
http://www.BiloBeauty.com
http://www.autismspeaks.org
Create a single instance codeunit and two forms and start experimenting.
RIS Plus, LLC
are these exam questions?
Thank you sooooo much. \:D/ \:D/ \:D/
How could u say that is the right answer, can u explain it little further :?:
As i think the answer is A) Red. :-k
all values in global vars remain in memory until cleared or closing navision.
the last assigned value is blue.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.