How long do these passing methods last? I just want to make sure that I have these lifespans correct. ByVal variables lasts for the entire program time, while ByRef variables last until the procedure ends. Am I correct?
ByVal and ByRef only determine how a variable is passed to a method. Either as a value, which means the variable is copied and exists only within the called method, or as a pointer to the original object, which means the original object passed is the one being modified. There is no time factor involved.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.