Function to set a local variable
Posted: Mon Dec 30, 2019 10:44 pm
Hi folks. I might be missing something very simple. When I use a function, normally I return a value that is then used locally. For example
tSquare now has value 36.
Now what I am looking for is to say:
After calling it, the local value, tSquare, should automatically have the value 36. Assume it has not been declared as global, local, or script local.
Any ideas?
Code: Select all
put square_it(6) into tSquare
function square_it pNumber
return pNumber * pNumber
end square_it
Now what I am looking for is to say:
Code: Select all
get square_it(6, tSquare)
function square_it pNumber, pVariable
...
end square_it
Any ideas?