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
Explain what is loose binding? Why is it not a good practice to use it?
Which operator can be used to do an xor operation in vbscript?
How are values assigned to string type and numeric type variables?
What are the disadvantages of vbscript?
What is sql loader? Explain the files used by sql loader to load file?
Which command is used for writing text on a page?
Explain the extension .hta?
What are the 2 ways in which a variable can be declared in the vbscript language?
What is dictionary object in vbscript? Explain?
write a function to read the items from combobox of Flight reservation & save in excel (QTP)??
How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.
Explain the support of asp for vb script functionality?
What is the purpose of on error resume next statement?
Mention what is the technology used by vb script?
Why is it recommended to close the database connection every time after the work is completed?