Listview Item Collection

dashley

Well-known member
Joined
May 27, 2005
Messages
59
Location
Tennessee
Programming Experience
10+
I have a listview with checkboxes. When I loop through the item collection to pick out which CB's were selected it seems to be starting from the bottom up.

For example: If I have 5 CB's numbered 1-5.I pick number 2 and 4.
When I go through the item collection it shows me number 4 first and then number 2.

Is there a way to go the other way .

Thanks
 
Not sure about your situation, but you can access items in a collection by index, also since the Item member of the collection is default member you can access the collection directly, so: LV.Items.Item(234) is same as LV.Items(234). or LV.SelectedItems(567) if this is your collection.
 
Back
Top