what's the difference in between function and sub and give
some code as well

Answer Posted / venkatesh

Hello every body,
If you don't know the rite example No issue...
But please don't copy and paste QTP user guide examples..
Humble request for all

Thanks
Venkatesh

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Have you faced any problems with object repository?

798


How many ways we can parameterize data in quicktest professional (qtp)?

773


what is stepin & stepout?

1602


Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..

1492


Hi, I am working on microsoft infopath forms..It is standalone form..(not dotnet or web.) . I am not able to indentify any objects in it.. I am currently using active accessibility in the macro for the same but its execution is too slow.. Kindly help in case you have better solution.

2643


Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you

1736


What are the properties you would use for identifying a browser and page when using descriptive programming?

794


In qtp, explain what is keyword driven automation framework?

808


hi to all, i need a code.. in flight application 1.i need to login first then i need to insert 3 new orders... 2.i have to log out 3.i have to login again with different user 4.need to insert 2 new orders 5.then need to log out 6.then again login with different user 7.3 new orders create and log out 8.but we hv to do this using data table and actions please help me

1961


What are some test assets and related extensions of qtp?

762


www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example

1718


whare exactly we have to use functions and sub routain

2023


When you open QTP, how many sheets you can see?

841


How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.

1695


please give me the code for doing retesting of gmail login page using functions so the function has to give the value

1745