vb6 – VB中可变数量的参数
发布时间:2020-12-17 00:00:00 所属栏目:大数据 来源:网络整理
导读:如何在视觉基础中创建可变数量的参数的函数? 恩。 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 Numb
如何在视觉基础中创建可变数量的参数的函数?
恩。 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
Function Sum(ParamArray Vals() As Variant) Dim intLoopIndex As Integer For intLoopIndex = 0 To UBound(Vals) Next intLoopIndex End Function (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |