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
Is VB Script Case sensitive or Case insensitive?
Can anyone send me a vb script function for verifying the functionality of active links on a web page
Explain the tristate constants in vbscript?
Which keyword is used to declare a variable in the vbscript language?
What are class properties?
Explain a few date functions in vbscript
Illustrate briefly about the different types of statement
Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?
How are comments handled in the vbscript language?
Explain about the support of asp for vb script functionality?
Difference between dim,public and private variables in vb script?
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
What methods are used to create text files and open text files in the vbscript language?
What is dictionary object in vbscript? Explain?
give me any information abou vb script books learn quckly