From the help file on the website:
"More about function parameters and
variables.
All variables within an instantiation
of a function are private to that
instantiation of the function. A
variable in the main program named
v$ is not the same variable v$ within
a function. Furthermore, a variable named
v$ in an recursively called function is
not the same v$ in the calling function."
So vars must be passed by value, not reference and you can only modify vars within the function, and not affect vars in the main program.
|