How do you return a value from a function



How do you return a value from a function..

Answer / prabhakar

msgbox "returned value =" &example

function example()
a=2
b=3
example = a+b
end function.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More QTP Interview Questions

can we install qtp on server machine and do automation of application which is installed on client machine.If yes then how? If no then is there any other automation tool for this (client-server) senario.

4 Answers  


In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail

0 Answers   Yahoo,


How the smart identification is used in real time?Please explain with an example

0 Answers   Wipro,


How we can add actions in the test using QTP?

5 Answers  


Explain process of smart Identification in QTP?

0 Answers  


hi friends i was tried to connect qtp with oracle database using provider.i got a error.so anyone can help me out by correct script

2 Answers  


Explain different types of action in qtp?

0 Answers  


does test plan is in test strategy or test strategy is in test plan.

6 Answers   Microsoft, TCS,


i am entering wrong data or wrong password in a text box and click on submit button .i am getting a popup window with a message Please enter the correct password or data .How can i handle this situation by using QTP.

11 Answers   SAP Labs,


How will you check a web application for broken links using qtp?

0 Answers  


Can any body tell me what is the method to connect the remote desk top throw QTP 9.2 version?

1 Answers  


1. Which function is used to check whether the specified object property achieves the specified value within the specified timeout below anyone is correct 1. Check Property 2. getToproperty 3. output Pls anybody can give the answer.. Thanks in advance...

1 Answers   Navis,


Categories