What is the difference between byref and byval in qtp?



What is the difference between byref and byval in qtp?..

Answer / Anupama Srivastava

In QTP, ByRef is used to pass a variable or expression by reference, allowing changes made to the passed value within the called function or script to be reflected back in the calling script. ByVal, on the other hand, passes a copy of the value, so changes within the called function or script do not affect the original variable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

In Webtable New rows getting added, we have select the name as Sandeep ,If name column is sandeep then need to check the checkbox ,we don't know the rows and columns ,Can anyone please tell me the answer.

3 Answers   Broadridge, Cigniti Technologies, HCL,


Hi Friends... What you are doing in Regression Testing and how many test cases you ran in regression testing... suppose there is 1000 test cases is there how many test cases again you run .. 1000 test caes r how many... thanx in advance..

6 Answers  


How can I import environment from a file on disk?

1 Answers  


how to upload an excel sheet to quality center?

1 Answers  


can u explain relative path architecture framework in qtp?

1 Answers   Mindlance,


Hi, Plz give best Definition of Software Testing? Why we need Software Testing? and plz send 2+yrs experience Interview qutions (Manual,Qtp).

10 Answers  


Explain what the difference between Shared Repository and Per_Action Repository

2 Answers  


Hi All, I am new to QTP but i was trained on winrunner before. My problem is..QTP 8.2 was unable to record my application which is a java app. By selecting smart identification, i was somehow able to record the test BUT QTP cant run the test! Can anyone help me in walking through this problem..Is java addin really necessary for this?? Is there anyways i can run the test successfully? I am not sure whats going wrong in my testing.Please do help me asap as i need to submit the report early. Thanks in advance

4 Answers  


what is the difference between modular framework & datadriven framework

1 Answers   SDS,


How to capture a window in QTP?

1 Answers   IBM, Mphasis,


How will u declare a variable to access multiple actions? a)Dim b)Global c)Public d)Private

1 Answers  


How can you merge two Object Repositories?

3 Answers  


Categories