F
Fia
Hi
I wounder if there is a way to take an array as argument and then print the
array's element, without knowing it's dimensions.
I know how to do if I know the array's dimensions, but not a clue if I don't
know the array's dimensions.
Sub messBox1(ByVal arr)
Dim s As String = ""
Dim i, j As Integer
For i = 0 To arr.rank
If arr.rank = 1 Then
s = s + arr(i) + "\n"
Else
For j = 0 To arr.getupperbound(1)
s = s + arr(i, j) + " "
Next
s = s + vbCrLf
End If
Next
MsgBox(s)
End Sub
I hope someone can give me a clue.
Fia
I wounder if there is a way to take an array as argument and then print the
array's element, without knowing it's dimensions.
I know how to do if I know the array's dimensions, but not a clue if I don't
know the array's dimensions.
Sub messBox1(ByVal arr)
Dim s As String = ""
Dim i, j As Integer
For i = 0 To arr.rank
If arr.rank = 1 Then
s = s + arr(i) + "\n"
Else
For j = 0 To arr.getupperbound(1)
s = s + arr(i, j) + " "
Next
s = s + vbCrLf
End If
Next
MsgBox(s)
End Sub
I hope someone can give me a clue.
Fia