Results 1 to 4 of 4

Thread: Implementing support for "For...Each"

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    Mexico City
    Posts
    242

    Implementing support for "For...Each"

    Hi,

    I don't remember what do I need to do so my custom collection supports the For...Each navigation.

    Can anyone point me in the right direction?

    Thanks

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Try making a collection class with the Class Builder AddIn thing, it takes care of all that for you.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    Mexico City
    Posts
    242
    thanks... that option never crossed my mind (obviously)

  4. #4
    New Member
    Join Date
    Aug 2001
    Location
    Winnipeg
    Posts
    10

    For Each

    The other way is as follows


    ' Class code
    private mcolThings as new collection

    public sub NewEnum as IUnkown
    set newenum = mcolThings.[NewEnum]
    end sub


    in the procedure properties, set the newenum id to -4

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