obtaining data from a list

dave1816

Member
Joined
Dec 11, 2007
Messages
8
Programming Experience
Beginner
i have created a list called Grades, and have added data to it (grade.add(results) however i dont now how to retrieve the data although i do know you use .sort() but not sure what code you use with it. any ideas?
 
Why would you use Sort to retrieve data? You use Sort to sort data. If that's what you want to do, which is likely if you want your grades in order, then the Sort method is for you.

As for retrieving data from a List, the documentation for the List(Of T) class can fill you in. It lists and describes every member of the List(Of T) class and provides code examples for many. If ever you have a question regarding a specific type you should always read the documentation for that type first. If you still don't know what to do, that's when you look further afield.

http://msdn2.microsoft.com/en-us/library/6sh2ey19.aspx
http://msdn2.microsoft.com/en-us/library/d9hw1as6.aspx

You should use the local version of the MSDN library in preference to the online version in most cases. If you haven't installed it already, I suggest you do so immediately if you're able.
 
Back
Top