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
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
Explain the operator precedence in vb script?
Which data type/types are supported by vbscript language and what are their specialties?
Mention how to access array data?
What is the purpose of drive object of scripting.filesystemobject class in vbscript?
can anyone tell me the procedure of interview held in applabs
Which constant is used for print and display functions and works as same as pressing enter key?
Mention characteristics of sub procedures?
What is variant in vb script?
What is the use of the date function in the vbscript language?
What methods are used to create text files and open text files in the vbscript language?
What are the different types of loops available in the vbscript language?
What is the main difference between function and sub-procedure?
What is purpose of scripting.filesystemobject class in vbscript?
how to set one column as primary key in QTP and fetch values accordingly