Consulting

Results 1 to 2 of 2

Thread: Solved: Procedure Attributes dialog

  1. #1
    VBAX Regular
    Joined
    Jun 2007
    Posts
    67
    Location

    Solved: Procedure Attributes dialog

    Hi,

    I have created my own collection class. In order to be able to iterate through the objects of the class (FOR...EACH NEXT), i need the following procedure:

    [vba]Public Property Get NewEnum() As IUnknown
    Set NewEnum = m_Col.[_NewEnum]
    End Property[/vba]

    Besides I have to HIDE the NewEnum method and assign it the ProcedureID of -4.

    Apparently this is done through the Procedure Attributes dialog box from the tools menu. It's my guess that since I am using VBA and not VB6 this dialog box is not available. Can someone confirm that?

    I've gathered some hints of a solution, but I don't know where to place it.
    Attribute NewEnum.VB_UserMemId = -4
    Attribute NewEnum.VB_MemberFlags = "40"

    Any help??

  2. #2
    VBAX Regular
    Joined
    Jun 2007
    Posts
    67
    Location
    Well, it seems this is becomeing a monologue: I guess there's not a lot of people using classes in VBA.

    I found an explanation in here:
    http://www.xtremevbtalk.com/archive/.../t-146131.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •