Link to home
Start Free TrialLog in
Avatar of liebrand
liebrandFlag for United States of America

asked on

Function Descriptions

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?

Avatar of Sethi
Sethi
Flag of India image

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

Avatar of liebrand

ASKER

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

ASKER CERTIFIED SOLUTION
Avatar of Sethi
Sethi
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial