Add Description To Functions And Function Parameters?

Apr 19, 2011

I'm writing a VB.NET function with a ton of overloads. I've seen that most .NET functions have parameter descriptions in IntelliSense. For example, when typing in String.Compare(, IntelliSense says Compares two specified System.String objects and returns... you get the idea. This description changes and you click through different overloaded versions of the same functions. When you start typing in something for a parameter, it describes the parameter you're currently inputting as well. Example: strA: The first string to compare..

View 5 Replies


ADVERTISEMENT

Get Functions Name And Their Parameters?

Dec 13, 2010

We know some functions in dll files and can use them but if we haw a dll file and dont know functions names. is there a way to get the functions name and their parameters

View 3 Replies

IDE :: Function Description(documentation) Not Working In .NET?

Sep 28, 2009

How is it possible to add a function description in VB.NET (VS 2005)? in C# this task is resumed to tape 3 times the "/" simbol just above the function declaration. (generates the <summary> tag and others)

View 14 Replies

Array Parameters In Functions/procedures?

Feb 1, 2011

I do need to write a procedure that carries an array as a parameter- The array can be an array of many types (Dates, Double, Strings etc)- The number of elements in the array is unknownExample:Private Sub MyArrayRoutine(MyFirstPatameter as string, MyArray as array of Object()

View 1 Replies

How Are Parameters Passed To Functions By Default

May 22, 2012

[code]Is j passed as value ByVal or by reference ByRef?Or does it depends of the data type? What if I have a complex object passed as the value?

View 2 Replies

Get The GET Parameters And POST Parameters In Just One Function?

Aug 6, 2011

is there a way to get the GET parameters and POST parameters in just one function or Collection in ASP.NET? Like using $_REQUEST in PHP? I'm using VB.NET.

View 3 Replies

Arguments / Parameters And Variables Inside Shared Functions

May 19, 2011

Well I am a new to VB.NET, converting a legacy system to .NET world. Recently I have been reviewing the already existing code since I joined the project quite late in the team. I find that there are many shared functions (not shared class) inside many classes. I doubt this may create some problem if two requests ( i.e two different HTTP request to the same method as it's a WCF application, of course exposed methods are not shared but internally called methods are shared) comes to the same shared method and both the calls to the method may have different method parameters/arguments, overwriting each other's arguments. In short, if shared method has a list of arguments which is going to be processed, is there any chance of inconsistencies in the light of multiple access to the shared method via two http requests.

View 2 Replies

Pass Parameters Of LINQ DataTables Through Functions And Subs?

Oct 30, 2011

How do I pass parameters of LINQ DataTables through Functions and Subs

View 1 Replies

Setting A Variable To Accept The Result Of A Function By Calling The Function With Many Parameters

Feb 17, 2011

I'm currently working with a client's VB.Net code, which was developed for them by a small development shop a few years ago and which they purchased and have been maintaining and uprgrading since. This client's primary developer is out on indefinite (likely permanent) medical leave and I'm now filling in until they bring in a full timer (as I'm a contractor here). My current task is to add some functionality to a the VB.Net code they purchased. I'm finding practices and techniques in the code that absolutely baffle me and can't make the code do what I want. I'm starting to wonder if it's me and was hoping to get some thoughts on the code I've encountered.

For example: Setting a variable to accept the result of a function by calling the function with many parameters, clearing the parameters in the function, setting them to some value, calling another function with those new values, then never using the values returned by the functions. I'll add a code snippet in the first comment since this is already getting long.

View 9 Replies

VS 2008 Subs/Functions Intellisense Listing Values To Parameters Upon Using It

May 30, 2010

I'm almost sure that I've seen this somewhere, but I can't find it anymore. Or maybe I'm imagining it, which would'nt be strange either.

When creating a sub or function and adding parameters used when calling it.

-Is it possible to list the parameters that I can enter when using it somewhere in my code?

E.g.

Public Sub MessageMain(ByVal Message As String, ByVal MessageType As String (List of possible values for MessageType)) Same for example as when you have boolean values in a sub/function. As soon as you use that somewhere in your code intellisense will present you with True/False to select.

I'd like the same for parameters in subs or functions I create and calling them from somewhere in my code. Saves me the trouble of remembering which options are available for those parameters.

View 8 Replies

Vb6 Declaring Functions - Error - "optional Parameters Must Specify A Default Value"

Oct 19, 2011

I just got upgraded from VB6.0 to VB2010. I'm trying to move some of my program functions over and I'm getting an error on the ones where I use optional... Public Function GetFolder(ByRef FTT As String, Optional InitFile As String)

I get the error at the end of the line, after the close par...the error is "optional parameters must specify a default value".

View 3 Replies

Getting Parameters Out Of A Function

Jul 20, 2009

i want to get all available midi device by name. i found this: Declare Function midiOutGetID Lib "winmm.dll" (ByVal hMidiOUT As Integer, ByRef DeviceName As String) As Integer

but: how do i get these informations now?

View 2 Replies

Modify Functions Such That They Can Accept Any Function

May 7, 2011

[[code] 1) Is this violating the phrase static classes should not have state?

2) How can I modify the functions such that they can accept any function (instead of my above situation which only works with F(TResult) and F(T, TResult). [code]

View 1 Replies

Way To View Preset Functions Like Int Function

Nov 16, 2009

Is there a way to view preset functions like the Int() function.

View 6 Replies

VS 2008 : Have A Class Where The Functions Of The Same Name Are Both Instance Functions And Shared Functions?

Dec 6, 2010

What I am trying to do is have a class where the functions of the same name are both instance functions and shared functions.

Public Shared Function Get...(byval xx as xx)

and

Public Function Get...

The Public Function uses a Property xx created in the constructor, whereas the Shared Function has the parameters (byval xx as xx).

View 1 Replies

.net - Function That Takes Other Functions As A Parameter And Executes Them

Apr 29, 2010

Is there a way in vb.net to create a sub/function that will take as an argument some kind of pointer to another function, and allow this new sub/function to execute the passed function? What I have are 10-12 xml-rpc functions I am calling against a remote server. Each of these functions has different argument lists (one takes 1 string, another might take 3 strings and one int, etc). All of them return an object.

[Code]...

View 4 Replies

Asp.net - Calling Other Functions From A Shared (or Static) Function

Aug 20, 2010

I get this error: Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class.

Partial Class _Default
Inherits System.Web.UI.Page
<WebMethod()> _

[Code]....

I know it has something to do with the fact that the first function is shared and the second function should probably be Public as well but I don't fully understand the reason behind it. Probably not relevant but I'm calling the web method from some javascript.

View 1 Replies

Categorizing Functions And Properties In A Function Library?

May 9, 2010

I am currently working on a project witch contains lots of functions and properties. These functions and properties are stored in the dll. If I reference to this from within my project, these functions and properties are all in the same namespace or class. (I don;t know how it is called)Example:If I type the root namespace: Functions. I get all the functions. I would like to organize them in:

Functions.Maths (All the functions involving maths)
Functions.Internet (All the functions involving the internet)
Functions.Language (All the functions involving languages)

I tried using classes but I cant access the properties when they are stored in a class. I don't know why.

View 2 Replies

Debugger When A Function Has A Lot Of Parameters?

Jan 21, 2010

where the VS debugger refuses to show certain field types including dates.My call stack contains FunctionA which calls FunctionB. FunctionB has about 45 parameters and many of them are dates.When I step into functionA,

1. the debugger refuses to show a date variable when you hold the mouse over it. It just shows {Date} instead of a value

2. If you do quick watch on that same variable, it also just shows {Date} instead of a value

3. If I do ?variablename in the immediate window, I get "System Error &H80131c23&"

When I comment out the call to functionB, the date variables all show correctly in all the above methods. I will stress that the code has not yet reached functionB, just its very existence in code screws up the debugger.I'm thinking this is a memory issue and maybe vs debugger can't cope with a huge function stack frame dataspace.devenv is only using 268Meg of ram on a 2Meg box, with not much else running. Thats reasonable for this size of project.

View 7 Replies

Invoke A Function With Parameters?

Jan 30, 2012

I use this code to invoke a function from a string, which I build in my application:

Public Class Form1
Dim f As New Foo
Dim methodName As String
Dim result As Object

[code]....

View 3 Replies

Return Two Parameters With Function?

Jul 6, 2009

is there a way to return two parameters with function ?something like

Private Function blah() as string
Dim hl as String = "Hello"
dim tr as String = "There"

[code]....

View 6 Replies

Mysql Functions - SELECT Statement And Make A Function ?

Jul 12, 2010

I am trying to clean up my code a bit.

I made the following function:

Public Sub sqlUpdate(ByVal table As String, ByVal column As String, ByVal var1 As String, ByVal column1 As String, ByVal var2 As String)
Public CN As New MySqlConnection
Public cmd As New MySqlCommand

[CODE]...

Which is fine, if I want to use mysql update all I have to do is call something like: sqlUpdate("test", "test", 0, "test", test) I was wondering if I could do the same with the SELECT statement and make a function. I cant think of a way to do it though...

sqlConnect()
Dim cmd As New MySqlCommand
With cmd
.CommandText = "SELECT * FROM users WHERE username=""" & lblAccountName.Text & """"

[CODE]...

The data I would want to extract would be different every time.

View 3 Replies

Argument Not Specified For Parameters Of Public Function

Feb 19, 2011

I have to create a program that finds the total cost for pizza, fries, and soft drinks, and places that in a list box. So far, though, I'm stuck. I have this code so far:

Public
Class frmBill
Private
Sub btnTotal_Click(ByVal
sender As System.Object,
[Code] .....

The errors that I am getting are:
"Argument not specified for parameter 'D' of Public Function totalBill(P As Double, F As Double, D As Double)
"Argument not specified for parameter 'F' of Public Function totalBill(P As Double, F As Double, D As Double)
"Argument not specified for parameter 'P' of Public Function totalBill(P As Double, F As Double, D As Double)"

View 3 Replies

Function To Return The Parameters As Array?

May 20, 2010

Dim oList as new Hashtable
oList.Add("1","Value1")
How can I create a a function to return my objects like the above one.

[code].....

View 4 Replies

How To Remove Unknown Function Parameters

Aug 23, 2009

i have a function that i can't tell how many parameters i need to pass into it (could be anywhere between 0-10+), how do i handle this ?

View 7 Replies

How To Send Parameters Array In Function

Jul 17, 2010

i am using XML as database, so updating or inserting diffrent XML's currently i am manage a seprate class for seprate XML file, this process consuming my lot of time, i want to create a genrelize class. currently according to the XML need i am sending two, three, four or five parameter in my function.

now i want to send array of the parameter to my function, so becoz of this thing i could mange all of my functions via a single class...

i am sending u the example what currently i use now...

Public Function Update(ByVal Item_ID As Long, ByVal ProductName As String, ByVal Price As Long, ByVal Path As String) As Long
Try

[Code].....

View 2 Replies

IDE :: Pass Parameters To A Function Using Delegates?

Feb 8, 2010

Can we pass parameters to a function using delegates

Private Sub UpdateLabel(byval text as string)
If Me.Label1.InvokeRequired Then
Me.Label1.Invoke(New MethodInvoker(AddressOf UpdateLabel))
Else
Label1.Text = text

[Code]...

View 2 Replies

Passing Parameters To Delegate Function?

Nov 21, 2010

I need to convert the following C# code to VB.NET:

public bool TryGetRewriteMatch(UrlContext url, out RedirectMatch match)
{
// NOTE: Normally this would use regular expression matches, cached database

[Code].....

However, I need to reference Url and ProductID in the function and I don't know how to pass them as parameters or get their values from the original function.

View 4 Replies

Asp.net - SQLServer INSERT Getdate() Function Using Parameters?

Jul 8, 2011

What is the preferred method of adding the current date/time into an SQL Server table with INSERT Command and executenonquery? I'm expecting something like ...

cmd.Parameters.Add("@theDate", SqlDbType.VarChar, 20)
cmd.Parameters("@theDate").Value = "getdate()"

View 5 Replies

Calling A Vb Function With Optional Parameters With A C# Call?

Nov 3, 2010

I am interacting with VB code on a different tier, using a client-side c# program. The VB function signature looks like this:

Public Sub toggleExclusion( _
ByVal mouse As Double, _
ByVal study As Integer, _

[Code]....

I get an error saying no overloaded method of toggleExclusion takes 2 arguments?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved