What is returned by a funktion if the returnvariable has no name and no call to EXIT() is made in the function?
I have a function that returns a boolean with no name. Previously the code included a call to EXIT() that defined whether the value returned sould be true or false. Now that the call to EXIT() has been removed what is returned? Is the returnvalue going ti be always TRUE or always FALSE or maby random?
0
Answers
It gives back the initial value of the datatype. On Boolean it is false.
If the returnvariable has a name like "ReturnBoolVar", an it is set in the function, the exit returns the value of this variable.
If the returnvariable hasn't a name and in the exit() is nothing set, it's returned the initial value.
regards
Thank you very much!
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.