This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 门外汉低级问题:在 VB 里如何用动态数组传递函数参数?哪位 DX 能给个 Demo, 不胜感激。
-diao_david(大卫。刁);
2002-10-24
(#814768@0)
-
可将数组传给一个Variant类型的参数. 写个小列子, 不知道是不是你要的.Function ArraySum(arr as variant) as variant
dim i as long, result as variant
For i=LBound(arr) to UBound(arr)
result=result+arr(i)
next
ArrySum=result
End Function
-mjs(臭豆腐);
2002-10-24
{196}
(#814781@0)
-
Great. Thank you very much. I have never thought Variant can be used in that way.
-diao_david(大卫。刁);
2002-10-24
(#814793@0)
-
呵呵, You are welcom.
-mjs(臭豆腐);
2002-10-24
(#814800@0)