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
What is the need of tabindex property is label control.
What is meant by Establish Connection in RDO?
What is the use of progress Bar Control?
What do you know about user forms.
Whether HTML supports multimedia: and document links?
___,___ arguments will be used to run a executable program in shell function
What are the Differenct Types of Instancing Property in ActiveX Dll and Exe?
How do you create a form in visual basic?
How do you zoom in visual basic?
Explain the usage of Web Browser Control?
___,_____ and ____ container objects.
Explain about conditional operators?
Types of DBCombo boxes
what are the different Types of Recordsets.
What do you mean by provider?