|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
Pass multidimensional array to function
How do you pass a multidimensional array to a function?
Thanks, |
|
#2
|
|||
|
|||
|
like this?
Code:
Module Module1
Sub Main()
Dim x(,) As Integer = {{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12}, {13, 14, 15, 16}}
xxx(x)
End Sub
Function xxx(ByVal x(,) As Integer)
Dim i As Integer
For i = 0 To 3
Dim j As Integer
For j = 0 To 3
Console.Write(x(i, j))
Next
Console.WriteLine()
Next
End Function
End Module
if not, sorry... |
|
#3
|
||||
|
||||
|
Nope. Sorry, that was my first idea.
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > .NET Development > Pass multidimensional array to function |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|