Post Reply 
[Programming] Treat like an adress, not like a number
12-02-2017, 11:46 AM
Post: #4
RE: [Programming] Treat like an adress, not like a number
As far as I know, you can't pass a variable to a function by reference.

What you can do is:

* return a value and assign it to the variable when returning from the function

* if you wanted to pass more than one variable by reference then return a list of values and pick the return values out of the list upon returning

* make sure the variable that you want to pass to the function is global pass its name to the function in a string, then within the function, append ":=value" to the string and then do EXPR(yourString)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [Programming] Treat like an adress, not like a number - grsbanks - 12-02-2017 11:46 AM



User(s) browsing this thread: 1 Guest(s)