Results 1 to 2 of 2

Thread: How to create an enum description?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Barcelona
    Posts
    1

    Question

    Hi,
    I'm writting a component, and I provide some public classes, functions and enums. It's easy to add a description for each function using the Procedure Attributes Dialog. For the classes, I modify the .cls file using the Notepad, and I add a line like this:

    Attribute VB_Description = "Some useful description here"

    Those descriptions can be seen using the Object Browser.

    But I don't know how to add a description to an enum, and also for each member on an enum.

    So, that's my question:

    ***How can I create an enum description?***

    TIA,

    -Miquel.

  2. #2
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386
    I haven't tried it, but I was told if you create your enum in a typelibrary, you can add descriptions there, and then it should work. AFAIK there's now way in straight VB code. (I remember if I asked that question here or on the codeguru vb webboard, search for my postings, you might find the answer including a sample tlb (I lost it when WinNT suddenly deleted my admin account, so I lost everything :-(
    Hope this helps

    Crazy D

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