VB自定义数据类型的数组调用内部变量,如何做入子程序
参见原程序:For i = 1 To RecNum
Data(i) = OutStatus(i).H_Value 'H
Next i
Call Test(Data(), Result1, Result2)
Report = Report & vbCrLf & "H_Value:" & vbTab & Result1 & vbTab & Result2
For i = 1 To RecNum
Data(i) = OutStatus(i).I_Value 'I
Next i
Call Test(Data(), Result1, Result2)
Report = Report & vbCrLf & "I_Value:" & vbTab & Result1 & vbTab & Result2
......
For i = 1 To RecNum
Data(i) = OutStatus(i).Z_Value 'Z
Next i
Call Test(Data(), Result1, Result2)
Report = Report & vbCrLf & "Z_Value:" & vbTab & Result1 & vbTab & Result2
能不能做一个子程序调用如 TestAll(Value),所有都直接调用如:
TestAll(H_Value)
TestAll(I_Value)
......
TestAll(Z_Value)
在线等,谢谢!