What is the difference between ByRef and ByVal.
When to use ByRef and ByVal
Answer Posted / sagar mitra
ByRef refers to the location, ByVal refers to the actual value. Also, if you are passing parameters with "ByVal" then even if the parameter values are changed, the original argument values will remain intact. But if you pass using "ByRef" then if the parameter values are changed, then the original argument value is also modified
| Is This Answer Correct ? | 26 Yes | 1 No |
Post New Answer View All Answers
What are the naming conventions while declaring a variable in the vbscript language?
Mention how to create a cookie using vbscript?
what types of bugs will we find out in banking projects for automation testing?
How will you compare two strings in vbscript?
Why is it recommended to close the database connection every time after the work is completed?
How to replace junk code recorded by QTP with a mall function.
Explain How do you create a recordset object in vbscript?
wht must be the interview question on corinthian information technology solutions incorporated.
What are keywords in the vbscript language?
How do i automate a website www.flyashx.com without having any test cases witin a week time.
How can you fetch the value of a cookie?
I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.
Hi Friends, I have an issue like the describe below: I'm using QTP and I'm testing on SharePoint. As you knoe, SharePoint has a customize function for user, so that, If I add an object Web Table at the first time, that object was recognized by "index" and "html tag", after that, if someone change the display of web part, the "Index" of my object was changed as well and QTP unable to select that Web Table. Can you guide me how to identify or anyway to keep that Web Table object as unique object? Thanks a lot.
What is the purpose of drive object of scripting.filesystemobject class in vbscript?
What is the difference between VBScript and JavaScript?