Get element from Arraylist
-
Hi for all programmer ! pls look , save and solve my problem below Dim myarraylist As ArrayList = New ArrayList() Dim array1(,) = {{"banana"}, {"Pineple"}} Dim array2(,) = {{"Mango"}, {"Peach"}} myarraylist.Add(array1) myarraylist.Add(array2) Mean that myarraylist store two Array in it. i want to extract each element out from myarraylist what should i do ? i wait for all your reply na. regards from Anatha
-
Hi for all programmer ! pls look , save and solve my problem below Dim myarraylist As ArrayList = New ArrayList() Dim array1(,) = {{"banana"}, {"Pineple"}} Dim array2(,) = {{"Mango"}, {"Peach"}} myarraylist.Add(array1) myarraylist.Add(array2) Mean that myarraylist store two Array in it. i want to extract each element out from myarraylist what should i do ? i wait for all your reply na. regards from Anatha
Access the items of Arraylist like myarraylist(0), myarraylist(1) and so on. Note Arraylist item will return object so you have to cast it into the correct object (2D array in your case).
Mubashir Software Architect Storan Technologies Inc, USA Every job is a self portrait of the person who did it.