How do you return a value from a function

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we record using all the modes in a single script? Explanation with example is appreciated

1626


Explain data driven framework?

772


Diff b/w Health care domain and Banking Domain?

4432


What is environment variable in qtp and why to use it?

770


How to creating an output value using quicktest professional?

753


If u r using library files (Instead of Check Points) , How do u do bitmap check ?

1746


explain how to write vb script in qtp?when will you write own script?

2081


wht type of User defined functions or Java Releated functions Do we write in VB scripting

1588


What are private functions in QTP? How they can be called from the function library?

823


What is the file extension of the code file and object repository file in QTP?

863


How can I import environment from a file on disk?

771


If there is a change in the object type eg: A button is changed as link, 1. How to edit that in the shared object repository. 2.What options are available to edit the object within shared object repository other than copy from loca; 3.What would be the effect of the change in Coded Scripts within QTP and Functions stored in .vbs file which are loaded and used in QTP

1530


What is recovery scenario in qtp?

784


Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??

1866


What is method name to compare two XML files.

1749