Hello,
I can't succed to pass an array by reference to a procedure and modify the values directly. Can you tell me what is wrong in my code ?
Sub main()
Dim Array1(2, 1) As Long
Modify (Array1())
End Sub
Sub Modify(Array2 As Long)
For I = 0 To 2
Array2(I, 0) = I
Array2(I, 1) = I + 1
Next I
End Sub
I can't succed to pass an array by reference to a procedure and modify the values directly. Can you tell me what is wrong in my code ?
Sub main()
Dim Array1(2, 1) As Long
Modify (Array1())
End Sub
Sub Modify(Array2 As Long)
For I = 0 To 2
Array2(I, 0) = I
Array2(I, 1) = I + 1
Next I
End Sub