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
How will you get the largest subscript of an array in vbscript?
How will you reverse a string in vbscript?
HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.
Why is the use of exit do or exit for statements within loops discouraged?
What are the 2 ways to pass a value to the function?
By default in vbscript the arguments passed to functions and subroutines are by reference or by value?
What is the difference between vbscript and vba?
How will you convert a string to lower case string using vbscript?
after medical test,when will be the police verification
can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.
What are the rules to name variable in vbscript?
Mention how to access array data?
What are the different types of loops available in the vbscript language?
How do you declare a variable in vbscript?
Mention what if you do not specify anything when you call a procedure?