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...

What is the difference between ByRef and ByVal.
When to use ByRef and ByVal

Answer Posted / fgf

Small correction: we have to call the function

Function abc(ByRef var)
var=var+1
End Function

Dim x:x=2
Call abc(x)
Msgbox x

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?

908


Explain the operator precedence in vb script?

1012


Which data type/types are supported by vbscript language and what are their specialties?

984


Mention how to access array data?

908


What is the purpose of drive object of scripting.filesystemobject class in vbscript?

963


can anyone tell me the procedure of interview held in applabs

2132


Which constant is used for print and display functions and works as same as pressing enter key?

944


Mention characteristics of sub procedures?

992


What is variant in vb script?

1089


What is the use of the date function in the vbscript language?

950


What methods are used to create text files and open text files in the vbscript language?

923


What are the different types of loops available in the vbscript language?

932


What is the main difference between function and sub-procedure?

988


What is purpose of scripting.filesystemobject class in vbscript?

1062


how to set one column as primary key in QTP and fetch values accordingly

2260