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

What are lbound and ubound in the vbscript language?

835


HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.

2277


What are class properties?

895


Mention when to use function procedures and what are its characteristics?

852


How will you get a string with the specified character the specified number of times in vbscript?

800


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

2243


How to declare an array in vbscript?

911


What are the advantages of vbscript?

864


Explain about scrrun.dll?

731


What if you do not specify anything when you call a procedure?

820


How are arrays declared in the vbscript language?

772


What is the use of option explicit in vbscript?

773


if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.

1662


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

778


Explain the functionality of vbscript?

724