Difference between ByRef and ByVal?
Answer / 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 |
What are binary and project compatibility?
List out the ADO objects?
Recordset object consists what?
Which controls have refresh method?
To populate a single column value which dbcontrols you to use?
Explain Types of DBCombo boxes?
What are 3 main differences between flexgrid control and dbgrid control?
Whats the advantages/disadvantages of using datacontrol vs DAO/ADO/RDO?
1 Answers L&T, MAHINDRA, Teledata,
What is Tabstrip control? What is the starting Index value? How to locate it?
Clear property is available in hich control?
What type of databases you can access through ADO Data Access Object?
State about the different types of visual basic data?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)