如何在视觉基础中创建可变数量的参数的函数?
恩。
恩。
x = Sum(1,2,3) y = Sum(1,2) Function Sum('how to declare argument here') 'Is there any special argument manipulation inside function before it is usable? End Function
看看
Passing a Variable Number of Arguments
原文链接:https://www.f2er.com/vb/256044.htmlFunction Sum(ParamArray Vals() As Variant) Dim intLoopIndex As Integer For intLoopIndex = 0 To UBound(Vals) Next intLoopIndex End Function