Answer Posted / suresh
Only a copy of a variable is passed when an argument is
passed by value. If the procedure changes the value, the
change affects only the copy and not the variable itself.
Use the ByVal keyword to indicate an argument passed by
value.
Passing arguments by reference gives the procedure access
to the a1ctual variable contents in its memory address
location. As a result, the variable's value can be
permanently changed by the procedure to which it is passed.
Passing by reference is the default in Visual Basic.
If you specify a data type for an argument passed by
reference, you must pass a value of that type for the
argument. You can work around this by passing an
expression, rather than a data type, for an argument.
Visual Basic evaluates an expression and passes it as the
required type if it can.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How do I implement Undo?
What is the use of ActiveX Documents?
Is it possible to change menu runtime using API? If yes? Specify the function names.
Is it possible to Access BackEnd procedures? Explain.
How do I make a text box not beep but do something else when I hit the Enter key?
How do I make the mouse cursor invisible/visible?
What is the need of tabindex property is label control.
What are the types of API Types.
What is OLEDB?
What is the use of NEW Keyword? Explain.
What is dao in vb?
Can you create a tabletype of recordset in Jet - connected ODBC dbengine?
What about DLL calls that require callbacks?
Give brief description about class?
How can you get selected file from file system Control?