What is the difference between ByRef and ByVal.
When to use ByRef and ByVal
Answer Posted / akshitha
Arguments r of 2 types-
byval & byref
byval-when a method is called using by value & an argument
is passed & if the value of that argument is modified within
that method,orginal argument is not modified
byref-when a method is called by reference & an argument is
passed & if the value of that argument is modified within
that method,original argument is modified
| Is This Answer Correct ? | 31 Yes | 12 No |
Post New Answer View All Answers
What are the disadvantages of vbscript?
Mention characteristics of sub procedures?
How will you check that a variable is an array in vbscript?
Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).
How to capture a runtime error in vbscript?
write a function to read the items from combobox of Flight reservation & save in excel (QTP)??
what is the differance between BYVAL,BYREF?
What are the different types of operators and their order of precedence?
What are class events?
Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.
1. How do declare public variable in vb scripts?
Difference between dim,public and private variables in vb script?
What are the rules to name variable in vbscript?
How to write functions and sub in vb script?
Explain vbscript in detail?