This is just a simple question.
I go through my list and use the value to search a database. Then when i get the results back i remove that value from the list. Now if i then add another item to the list then will it add it to the end or will it put it in the position of the value i removed?
Also i need to loop through that list so that every item is used. At the moment i am using
VB Code:
  1. do
  2. 'whatever i need to do
  3. iLengthofList = list1.count - 1
  4. loop while iLengthofList <> 0
where iLengthofList is an integer. Now is there a more efficient way of doing this or is this it when takin into consideration that in the loop i will be changing the length of the list constantly?

Thanks for any advice on either of my questions.

B.T.W I am using .net compact framework 2.0 Windows Mobile 5.0

Thanks again