Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Difference between ByRef and ByVal?



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

Post New Answer

More Visual Basic Interview Questions

What is difference between datagrid and flexgrid?

3 Answers   InfoWorld, TCS,


How can you filter out specific type of file using file system controls?

0 Answers  


in ADO connection string if password is leave blank and all others are given. what will happen

1 Answers   eFunds,


Where will we give the option explicit keyword and for what?

1 Answers  


What is Internet Explorer and its uses?

0 Answers  


What are some methods you can use to send data from one VB executable to another one?

0 Answers  


Explain about Caturing Baseline.

0 Answers  


What are the types of Error? In which areas the Error occurs?

0 Answers  


What is meant by Establish Connection in RDO? 74.1s it possible to Access BackEnd procedures? Explain.

0 Answers  


What is the need of tabindex property is label control.

0 Answers  


___ argument can be used to make a menuitem into bold.

0 Answers  


Difference between listbox and combo box.

12 Answers   HCL, Infosys,


Categories