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


Please Help Members By Posting Answers For Below Questions

How to pass argument by reference to a function in vbscript?

540


How to access array data?

545


Which constant is used for print and display functions and works as same as pressing enter key?

532


write a program to display configuration of a local system with the help of vb script.

1691


what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?

1436






What are the different types of loops available in the vbscript language?

536


How to assign a numeric value to a variable?

623


how does vb script help in web page designing? explain with example.

1590


How to create a function in vbscript?

590


How are arrays declared in the vbscript language?

547


Explain the functionality of vbscript?

538


Explain about constants in vb script?

577


Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)

3194


Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...

1657


Explain about scrrun.dll in vbscript?

654