vb6数组参数传递:VB中如何将数组作为参数传递
展开全部
vb6中所有数组做参数传递都是传地址的。
Private Sub Command1_Click()
Dim a(3) As Integer
a(0) = 1
a(1) = 2
a(2) = 3
a(3) = 4
arr a
End Sub
Private Sub arr(ByRef arr() As Integer)
Dim i As Integer
For i = 0 To UBound(arr)
Print arr(i);
Next
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询