Thanks Herfried. I was able to get it to work in my simple test app
beautifully, but when i tried to implement it in my Web Service, it returned
the following error:
WebService.MethodName can not be reflected.--> Multi-dimensional arrays are
not supported. Use a jagged array instead.
Oh well...back to the drawing board!
Scott
"Herfried K. Wagner [MVP]" wrote:
"SQLScott" <SQ******@discussions.microsoft.com> schrieb:I have looked all over and I cannot find an example or information on
passing
a multi-dimensional array. Well, that is not true. I found a close
example
in C++ but it didn't work when I "converted it" to VB.Net.
My receiving method looks like this:
Public DoIt(ByRef Array( , ) as string) as boolean
but what I am not clear on is what the parameter looks like in my calling
routine:
Dim result as boolean
result = DoIt(Array(???))
\\\
Dim Data(2, 2) As Object
....
Foo(Data)
' Alternative.
Foo( _
New Object(2, 2) { _
{2, 3, 4}, _
{3, 4, 5}, _
{6, 7, 8} _
} _
)
..
..
..
Public Sub Foo(ByVal Data(, ) As Object)
...
End Sub
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>