Results 1 to 11 of 11

Thread: can you comment constructors?

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    can you comment constructors?

    IF possible, how do you put comments on your NEW class constructors so that when you call them via code, they display info on what the constructor does

  2. #2
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780
    I think you can add comments/summary fields to classes (maybe functions) like shown in the object browser, by using attributes. Im looking up how to do it myself out of interest, but my help file is playing up. If you work it out before I do please tell .

  3. #3
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    Yes you can, they are functions just like any other elese
    \m/\m/

  4. #4

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    huh? maybe you don't understand... I am talking about this

    Attached Images Attached Images  

  5. #5
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Not natively in VB, but you can in C# and J#.

    There are third party tools that can do it for you in VB, or you can create the XML file that contains the information yourself. Just make something in C# and copy it for what you need int VB. I think the XML file needs to be in the same folder as the assembly and it should work.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  6. #6

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    why would they put the functionality in C# but not in VB, that is just another reason for people to bash VB still

  7. #7
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Originally posted by kleinma
    why would they put the functionality in C# but not in VB, that is just another reason for people to bash VB still
    I dunno. I believe that it will be available in 2005.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  8. #8

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    ok im quitting coding until then

  9. #9
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    I would if I were you.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  10. #10
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840
    Hi.

    Look for a program called XMLComments on MSDN.
    After you have compiled your DLL you can open it with this program and add all the comments. This is saved as an XML file that you need to place in the same dir as the DLL.

    Note: this will, of course, only work with references DLL's and not classes from the same project.
    I wish I could think of something witty to put in my sig...

    ...Currently using VS2013...

  11. #11

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    thanks ill check it out when i resume programming in 2 years

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