Function Descriptions

liebrand
liebrand used Ask the Experts™
on
I am trying to figure out how to put descriptions behind my own functions (and/or parameters).

For example, if I type "messagebox.show(" in the editor, it pops up with a little help box that tells you a brief description about each of the parameters its expecting.

How can I do this for my own functions?

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
When you create a function or Sub with parameters VB will display these opeions automatically. For example create this simple Sub on a form:

Private Sub Display(strMessage as String)
   Msgbox strMessage
end Sub

Now call this Sub in Forms load event:

Private Sub Form_Load()
  'As soon as you type Display and press a space bar your parameter will be displayed as strMessage. Supply this value and run the form
Display "I have seen the parameters"
End Sub

Author

Commented:
I want to also supply a description along with the parameter. So if another developer is accessing the function, I can give a brief description of what the parameter is for.

This appears to be something new in VB.NET -- VB6 does not have this feature. But if you go into VI Studio.NET and type the function messagebox.show( you will see in the help it will say something like "text: this is the text that is displayed in the messagebox".

And that is what I am trying to figure out how to do.

Thanks

Commented:
In VB6 you cant do it along with parameters.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial