View Single Post
Old 06-13-2011, 07:11 PM   #27
5thWiggle
Benevolent Evil Lord
5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.
 
5thWiggle's Avatar
 
Posts: 1,704
Karma: 48339466
Join Date: Jan 2011
Location: Evil Canada (We all have goatees!)
Device: Galaxy Note 8.0, Galaxy Note, iPad Mini, PocketEdge(retired)
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.
5thWiggle is offline   Reply With Quote