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

Difference between test object and run time object?

586


How to data driven test for Win objects in QTP ?

1468


can i compare two databases using QTP ?

1873


Will down time for server and content maintenance/upgrades be allowed? how much?

611


how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?

1310






How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..

1714


What is text/text area checkpoint?

562


How does quicktest professional (qtp) identifies the object in the application?

578


Can we run multiple QTP scripts one after the other without manual intervention? How?

590


Which scripting language used by quicktest professional?

526


What is text check point and text area check point?

600


hai, i completed my b.tech in 2010 with 62.3%. i having knowledge on manual testing and Qtp. i want Relavent experience in testing.watever may be d salary i dont bother..I just want to gain knowledge. i dont have good communication skills.

1424


i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?

1551


what is ODC and GDC?

7343


Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.

3004