scriverb,
Thank you for so eloquently making the point that I was trying to make. I'm a little fuzzy-headed from too many late nights, and so my communications aren't as clear as I'd like them to be.
realm22,
A function can only return a single value, however you can modify the parameters that are passed to it, which has the effect of other returned values. (I believe this is the same in C, isn't it?)
For example:
Function MyFunkyFunction(ValA, ValB)
'This is a variation of one of the first functions I ever wrote
'It was for extra credit in a programming class.
ValA = ValA + ValB
ValB = ValA - ValB
ValA = ValA - ValB
MyFunkyFunction = ValA + ValB
End Function
The function would only return the value of ValA + ValB, but in the process, ValA and ValB would be swapped.