M
moondaddy
I need to return a nested string array from a function and am getting hung
up on syntax. Here's a simple example of a function that returns the array
and how I'm trying to call it.
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Dim arr()() As String = Me.TestArr1
End Sub
Private Function TestArr1() As String
Dim arr()() As String = { _
New String() {"a00"}, _
New String() {"a10", "a11"}, _
New String() {"a20", "a21",
"a22"}}
End Function
Any help would be great!
Thanks.
up on syntax. Here's a simple example of a function that returns the array
and how I'm trying to call it.
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Dim arr()() As String = Me.TestArr1
End Sub
Private Function TestArr1() As String
Dim arr()() As String = { _
New String() {"a00"}, _
New String() {"a10", "a11"}, _
New String() {"a20", "a21",
"a22"}}
End Function
Any help would be great!
Thanks.