如何在视觉基础中创建可变数量的参数的函数?
恩。
恩。
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
原文地址:https://www.jb51.cc/vb/256044.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。