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

i need to sort the data using qtp script for this how i need to write a qtp script

3455


How many types of procedures are available in the vbscript language?

750


Explain about tristate constants?

782


Mention what is byref and byval parameters in vbscript?

786


Explain the functionality of vbscript?

720


Mention what are the rules to name variable in vbscript?

778


What is difference between vbscript and vba?

871


Explain about the asc function?

827


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

730


Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

1809


Explain about the support of asp for vb script functionality?

733


Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?

1049


Does VB/Win make standalone .EXE files?

3140


How will you get a string with the specified character the specified number of times in vbscript?

795


Explain the string concatenation function in vbscript?

744