How do I pass a two-dimensional array to a Function or Sub??

  • Thread starter Familjen Karlsson
  • Start date
F

Familjen Karlsson

Hi
I wounder how I can pass a two-dimensional array or more to a Function or
Sub and how shall the Function or Sub look like.

Fia
 
M

Mattias Sjögren

Fia,
I wounder how I can pass a two-dimensional array or more to a Function or
Sub and how shall the Function or Sub look like.

Sub DoStuffWith2DArray(Byval arr(,) As Integer)
....
End Sub


DoStuffWith2DArray(New Integer(,) {{1,2,3},{4,5,6}})


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top