按地址引用参数就可以改变传进去的参数的值了。如下列所示代码:m和n就被函数addtest改变为3和4了。Public Function addtest(ByRef a As Integer, ByRef b As Integer)a = 3b = 4addtest = 5End FunctionSub aa()Dim m As IntegerDim n As Integeraddtest m, nMsgBox mMsgBox nEnd Sub
返回数组地址。