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 would you attach pictures in column headers of List View Control?
VB ActiveX: Create a "drivelist"(D1) box, a "folderlistbox"(FLD1) that changes whenever D1 is changed , and a "FilelistBox"(FIL1) that is populated with the file lists under the selected directory in (D1).The file selected is stored in a variable "filename" along with the path. Question: How to use this activeX control in VC++ to get the selected filename?
what are the Differences between Recordset and Resultsets?
What is recordset in visual basic?
Is visual basic c#?
How do you create a form in visual basic?
How to down load image properties.
Is there any Edit method in ADO Data Access method?
What is the use of Scalewidth and ScaleHeight Proeperty?
How would you create Visual basic Document file?
how a multiple routing works ?
How do I play MID, WAV or other multimedia files?
Types of DBCombo boxes
What is rdo in vb?
How would you create your application in DHTML?