473,473 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Parameter description

If I have a procedure like

Sub SUB1 (i as integer, s as string)
end sub
how do I write some descriptions for i and s? that way when I call Sub1
there will be a pop toothtip to describe what i and s is.
Thank you.
Jun 15 '06 #1
4 1361
Hi,

In VS.NET 2005, after you declare:
Sub SUB1 (i as integer, s as string)
end sub

type ''' a line before the signiture

and you will get the following:

''' <summary>
'''
''' </summary>
''' <param name="i"></param>
''' <param name="s"></param>
''' <remarks></remarks>
Sub SUB1 (i as integer, s as string)
end sub
You can type the description for i and s between the >< (ie <param
name="i">i is an integer, does so and so</param>

If you are using VS 2003 I believe you need to download VB commenter.

Cheers,

Ahmed
Quinn wrote: If I have a procedure like

Sub SUB1 (i as integer, s as string)
end sub
how do I write some descriptions for i and s? that way when I call Sub1
there will be a pop toothtip to describe what i and s is.
Thank you.


Jun 15 '06 #2

Ahmed wrote:
Hi,

In VS.NET 2005, after you declare:
Sub SUB1 (i as integer, s as string)
end sub

type ''' a line before the signiture

and you will get the following:

''' <summary>
'''
''' </summary>
''' <param name="i"></param>
''' <param name="s"></param>
''' <remarks></remarks>
Sub SUB1 (i as integer, s as string)
end sub
You can type the description for i and s between the >< (ie <param
name="i">i is an integer, does so and so</param>

If you are using VS 2003 I believe you need to download VB commenter.


So this is how you provide Intellisense with info about your function,
eh? Just what is this technique referred to so I can look it up in the
help?

Jun 15 '06 #3
Yes, this is how you IIntellisense with info about your function. These
info will show up in the Object Browser as well. This is a method I
just created for illustration and this is how it shows in the Object
Browser.:

Public Sub testing(ByVal x As String, ByVal y As String)
Member of: WindowsApplication6.Form1
Summary:
This method does this and that...etc.

Parameters:
x: x is a string. blah blah blah
y: X is a String. Blah blah blah

Remarks:
There is a limitation. This method throws and exception...etc
Regarding the help file, there was a program called ndoc to create
compiled html document. But I don't know if there is a way to integrate
these information with the VS help file.

za***@construction-imaging.com wrote:
Ahmed wrote:
Hi,

In VS.NET 2005, after you declare:
Sub SUB1 (i as integer, s as string)
end sub

type ''' a line before the signiture

and you will get the following:

''' <summary>
'''
''' </summary>
''' <param name="i"></param>
''' <param name="s"></param>
''' <remarks></remarks>
Sub SUB1 (i as integer, s as string)
end sub
You can type the description for i and s between the >< (ie <param
name="i">i is an integer, does so and so</param>

If you are using VS 2003 I believe you need to download VB commenter.


So this is how you provide Intellisense with info about your function,
eh? Just what is this technique referred to so I can look it up in the
help?


Jun 15 '06 #4
"Quinn" <qj**@yahoo.com> schrieb:
Sub SUB1 (i as integer, s as string)
end sub
how do I write some descriptions for i and s? that way when I call Sub1
there will be a pop toothtip to describe what i and s is.


..NET 2.0: Simply enter three consecutive single quotes in front of the
method declaration.

..NET 1.*:

Adding IntelliSense tooltips, XML comments, and documentation
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=tooltipsxmldocumentation&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jun 15 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: kaiwing18 | last post by:
Hi, I have a following jsp file called "showAsset.jsp" : <form action="showAsset.jsp" method="post"> <tr BGCOLOR=YELLOW> <td><input name="sort" type="submit" value="Asset_Number" > </td>...
3
by: WGW | last post by:
Though I am a novice to MS SQL server (2000 I believe), I can do almost! everything I need. Maybe not efficiently, but usefully. However, I have a problem -- a complex query problem... I can...
1
by: Prashanth | last post by:
Hi , I want to make a stored proc call thru .NET . I use the SqlParameter objects to create input parameters and set it's value. SqlParameter myParameter = new...
0
by: VictorCorey | last post by:
Is it possible to use a multi-parameter query in .NET Here's the method Public Function SearchCatalog(ByVal searchString As String, ByVal allWords As String) As OleDbDataReade ' Create the...
2
by: eczino | last post by:
I currently have a web form posting back to a SQL table using a Stored Procedure. Part of this SP is that it pulls data from another table and inserts a new row into the registration table. I...
4
by: js | last post by:
I have a stored procedure named "processInventory" like the following. Depending on the passed in parameters, I would like to add a WHERE clause for "select" action. For example, if any varchar...
2
by: Betrock | last post by:
This is probably very simple, but I just can't see my way thru it..... Short version: keyed values(numeric)in a lookup table are stored in a main table. They are displayed as text values - the...
7
by: Cemal Karademir | last post by:
Hello, Please forgive my simple question, but i don't know the correct synatx. From the masterpage i want to put a text in an textbox and then select an item in the datagrid. I do know how to...
6
by: tizmagik | last post by:
I am having a lot of difficulty generating a CrossTab Query based report. I have looked online for several tutorials and whatnot but I have not been able to really find what I'm looking for, nor...
3
by: Ken Cox [Microsoft MVP] | last post by:
I've been going around and around on this one. I can't believe that it is "by design" as Microsoft says. Here's the situation: In *declarative* syntax, I'm trying to create a default datetime...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.