Results 1 to 3 of 3

Thread: Collections, and List Iterators

  1. #1

    Thread Starter
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253

    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

  2. #2
    Fanatic Member Comintern's Avatar
    Join Date
    Nov 2004
    Location
    Lincoln, NE
    Posts
    826

    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.

  3. #3
    Fanatic Member Comintern's Avatar
    Join Date
    Nov 2004
    Location
    Lincoln, NE
    Posts
    826

    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
  •  



Click Here to Expand Forum to Full Width