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
Types of LockEdits in DAO?
___ property is used to change to ___ value to access a identity column'in datacontrols.
How would you add elements and pictures to listitems in listview control?
Types of cursors in RDO.
What is the use of parameters collection?
How would you Create a Query Builder and Explain its uses ?
How would you find out the value property in Slider Bar Control?
Is it posible to Create Tables Through Querydef?
What is the use of Scalewidth and ScaleHeight Proeperty?
How many objects resides in ADO ?
what are the Types of LockEdits in RDO?
How can you Navigate from the DHTML application to another DHTML application? .
How should dates be implemented so they work with other language and country formats?
How do I create a window with a small title bar as in a floating toolbar?
What is instantiating?