VB定义自定义函数的参数为数组,返回值也为数组
您好,您的回答解决了我的问题,但是还有一个问题如果定义自定义函数的输入值为数组,返回值也为数组,这样定义可不可以PublicFunctionx(a()AsSingle,b...
您好,您的回答解决了我的问题,但是还有一个问题
如果定义自定义函数的输入值为数组,返回值也为数组,这样定义可不可以
Public Function x(a() As Single, b() As Single, c() As Single, d() As Single, e() As Single, f() As Single) As Single()
.......
End Function
调用的时候这样
Private Sub Command1_Click()
Dim BZ() As Single '定义总评判集BZ
BZ = zpdj(B1(), B2(), B3(), B4(), B5(), B6())
End Sub 展开
如果定义自定义函数的输入值为数组,返回值也为数组,这样定义可不可以
Public Function x(a() As Single, b() As Single, c() As Single, d() As Single, e() As Single, f() As Single) As Single()
.......
End Function
调用的时候这样
Private Sub Command1_Click()
Dim BZ() As Single '定义总评判集BZ
BZ = zpdj(B1(), B2(), B3(), B4(), B5(), B6())
End Sub 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询