Forum Discussion
Feb 05, 2009
You'll need to allocate the first entry in the 2-d array to be contain the second level array.
Something like this:
Dim memdef()() As iControl.CommonIPPortDefinition = _
New iControl.CommonIPPortDefinition(0)() {}
memdef(0) = New iControl.CommonIPPortDefinition(0)
memdef(0)(0) = New iControl.CommonIPPortDefinition
memdef(0)(0).address = member_ip
...
You might need to allocate those arrays to size one instead of zero though. I'm away from my dev box right now so I can't test it.
Hope this helps.
-Joe