Collections, and List Iterators
I have a collection of same-type objects and I use the .[_NewEnum] syntax as my list iterator.
However, the objects can be marked as 'Deleted' Is there anyway of interrupting the .[_NewEnum] syntax to only return those objects which have not been marked as deleted?
As I understand it this syntax returns the pUnk to the IEnumVARIANT interface. Another way of asking the question then, is to ask does anyone know any method of detaching the IEnumVARIANT interface from a VB object?
Thanks in advance
Re: Collections, and List Iterators
I remember running across a method a while ago to implement a custom _NewEnum function for a class. I think it had something to do with wrapping the collection in a class that implements _NewEnum, and then keeping track of the indexing yourself. I was looking into putting together a collection with a sort method when I ran across it, so I might still have a link to it someplace.
Re: Collections, and List Iterators
Found it. This might help.