What is difference between function and procedure?

Answer Posted / santhosh kandula

1.Function can return a value but procedure may or may not.

2.function can take input valuesand return the result where
as procedure can take the input and output values and
doesn't return any value, it will store the result.

3.We can perform transactional operations on fuctions like
insert,update,etc,... where as in procedure we just call
the with the procedure name.

4.Through procedures we store images where as through
fuctins it's not possible

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use breakpoints in QTP?

569


How to analyzing the checpoint results?

508


How can i click on any Excel sheet's "H" column with out writing coordinates Ex:Window("Book1").WinObject("Book1").Click 498,14 I dont want to give coordinates like 498,14 Can i open "H" column by writing like Ex:Window("Book1").WinObject("Book1").Click "H" or Ex:Window("Book1").WinObject("Book1").Click "H","1" or Ex:Window("Book1").WinObject("Book1").Click H,1 If i want to click on "Sheet3" of an excel sheet, Can i open like Ex:Window("Book1").WinObject("Book1").Click "Sheet3" Please help me any one

1586


Is any limitation to xml checkpoints?

549


what is the diffrence bw qtp architectute and qtp framework?

1531






How you know that a test case is a regression test case

3042


How to build scripts that access data from external sources?

1590


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

534


Explain data driven framework?

563


How can get count of list box?

623


In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?

1425


How do I get the QTP scripts result in xml format by using vb script function?

1770


What are the automation metrice in your project?

1702


Does Low-level recording capture mouse movements?

576


What is the pros and cons between QTP and Rational Robot

3271