|
-
Apr 3rd, 2006, 08:40 AM
#1
Thread Starter
Frenzied Member
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
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Apr 3rd, 2006, 09:03 AM
#2
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.
-
Apr 3rd, 2006, 09:05 AM
#3
Re: Collections, and List Iterators
Found it. This might help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|