|
-
September 28th, 2004, 10:34 AM
#1
VB.NET: Question on presenting array
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
-
September 28th, 2004, 11:25 AM
#2
Re: VB.NET: Question on presenting array
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
Nicolas Bohemier
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|