instead of a function, create a method and declare the output variables byRef
public/private sub MySub(byval in1, byval in2,... byref out1, byref out2,...)
all the byval (by value) are [in] parameters (that is, they cannot be changed inside MySub, actually they can but when the sub returns they are left the same), and all the byref (by reference) are [out] parameters that can be modified
Marco
|