What is difference between function and procedure?

Answer Posted / babu

1.Function always return a single value but procedure may
return more than one value.
2.We can use functions in select statement but we can not
use procedure in select statement.
3.There is possible of recurssive functionlike max(min
(something)),but there is nothing like in procedure.
4.In function we use a return keyword but in procedure no
return keyword is used.

Is This Answer Correct ?    8 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find the name of the machine where you are running your automation scripts in qtp?

609


Which functionalities of QTP used in banking project?

2017


How to sendKeys in QTP? Diff b/w sendkeys and device replay? Diff b/w function and Sub? Diff b/w Array and List Different Types of running Keys other than Fast, slow,Normal mode Regular expression for http://newtours.demoaut.com Difference between \w and \W How to generate script button Recording Types Different Types of Actions? Using DP performance degrades, If Yes why? How to close all the opened browsers? Diff b/w SystemUtil.Run and invoke application? If qtp not recognized the combo box How to select values from drop down?

3615


What is the use of an object spy tool in qtp?

641


How to remove associated function library?

649






How to recognise the webelement and verifying that webelement is enabled?

1733


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

1557


Where we use data driver in qtp?

690


Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop.My scenarios is like that,it should contain following steps. 1)Automatically it should click on start and then on remote desktop connection. 2)it should enter the IP address and then connect to remote desktop. 3)and then it should be able to record the application in remote machine and then run it also. Can somebody tell me how to record the application which is in remote machine.

1594


What are the types of object repositories? Which one is you using?

718


What is the syntax for how to call one script from another?

662


How do you check ticket cost and ticket number in flight application?

676


What is the registration process and examination fees?

637


Limitations in QTP?

1824


hou can we use vb script in qtp could u tell me breafly

1850