Click to See Complete Forum and Search --> : VB.NET: Question on presenting array


toytoy
September 28th, 2004, 10:34 AM
If i have a list of arrays, how to go about viewing every individual of it...

Say inside each of the array has this content:

Name: OO
Age: XX

how to you guys present the dynamic arrays or arrays on one form in your Window application......

Thanks

Boumxyz2
September 28th, 2004, 11:25 AM
You will have to loop

There's 2 way of doing it

1 -
Public Class YourType
Public Name as string
Public Age as integer
End Class

Dim YourArray() as YourType
'Fill In YourArray somewhere Here
For i as integer = 0 to YourArray.Gelenght(0) - 1
'Do your stuff here
next

OR

2 -

Public Class YourType
Public Name as string
Public Age as integer
End Class

Dim YourArray() as YourType
'Fill In YourArray somewhere Here
For Each I as YourType in YourArray
'Do your stuff here
Next