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
Mention what is variant in vbscript?
where can i learn VB scripint ?
Mention what are the rules to name variable in vbscript?
Which operator can be used to check if two numbers are equal or not in vbscript?
Why to use option explicit in vb script?
What are the special sub-types in vbscript?
If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?
What is the purpose of the err object in the vbscript language?
What are events in the vbscript language?
Explain about scrrun.dll in vbscript?
How are values assigned to the variables in the vbscript language?
Mention what if you do not specify anything when you call a procedure?
What is loose binding? Why is it not a good practice to use it?
Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.
How to make sure that items in a wintree are sorted al?