Hi,
I just want someone to explain Value and Variable Parameters to me in english. Its just that, no matter how I try to learn them, they confuse me and will always be in the dodgy end unless someone explains it proper. So here's my understanding so far:
Value parameters. They call the procedure, and the procdeure is carried out, but the data is not sent back to the source. Something like that
Variable Parameters, is the same as above, but the data is sent back and overwrites the previous data.
Can someone giv an example as to when Value and Variable are used that distinguished their features? As in, when is 'not returning' the data a good idea? And when is it not?
Thanks
Variable is useful for doing things like sorting an array. You want to return the results of sorting.
Value is useful when you will have to manipulate the local copy to implement your logic, but don't want to risk screwing up the original. Generally, I recommend you use Value unless you explicitly intend to manipulate one of the variables you are passing.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks