Home All Groups Group Topic Archive Search About

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

Author
6 Jan 2006 10:08 AM
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

Author
6 Jan 2006 10:25 AM
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

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.