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
create a form to accept username and password validate the username and password with using message box, display the corresponding user message
Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar
What purpose does ‘on error resume next’ serves?
How to make sure that items in a wintree are sorted al?
Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.
1. How do declare public variable in vb scripts?
What are events in the vbscript language?
I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?
How to Convert Hex color code to color name in VB Script?
What is the purpose of the err object in the vbscript language?
Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?
Mention what is vbscript procedures?
What are keywords in the vbscript language?
How should i Create Email invite with server-side Coding?
Explain the adodb.stream class?