
Collection sorting question
Hello Eric,
Quote:
> Is it ever possible that:
> For i = 0 to MyCollection.Count -1
> MyCollection(i).tostring
> Next
> will sort through a collection in a different order than:
> For Each MyObj in MyCollection
> MyObj.ToString
> Next
This depends on the type of the collection you "loop" through the
connection. When implementing a custom collection you can provide your own
enumerator which defines the order (this can be a curtom order) of the
enumeration in a For...Each loop.
Regards,
Herfried K. Wagner