Function return jagged arrayhttp://forums.asp.net/t/1789056.aspx/1?Function+return+jagged+arrayWed, 04 Apr 2012 17:13:56 -040017890564915658http://forums.asp.net/p/1789056/4915658.aspx/1?Function+return+jagged+arrayFunction return jagged array <p>Can we make function which return jagged array? If so, could u give example of it?</p> 2012-04-04T11:05:07-04:004915693http://forums.asp.net/p/1789056/4915693.aspx/1?Re+Function+return+jagged+arrayRe: Function return jagged array <p>Function returning jagged array:</p> <pre class="prettyprint">Public Function [Get]() As Integer()() Dim a As Integer()() = New Integer(1)() {} a(0) = New Integer(1) {1, 2} a(1) = New Integer(0) {3} Return a End Function</pre> <p>Calling Process:</p> <pre class="prettyprint">Dim b As Integer()() = [Get]() For Each x As Integer() In b For Each y As Integer In x Console.WriteLine(y.ToString()) Next Next</pre> <p>Thanks</p> 2012-04-04T11:19:57-04:004916411http://forums.asp.net/p/1789056/4916411.aspx/1?Re+Function+return+jagged+arrayRe: Function return jagged array <p>Ayayaaa! This is what i need.</p> <p>Thank you for ur help :)</p> 2012-04-04T17:13:56-04:00