What is the difference between procedure and functions in VB?

Answer Posted / supriya shringi

A procedure is a set of code that does the work but
does
not return a value whereas a function accepts
parameters
and does the calculation and does return a value
back.

Funcion returns the value and proocedeur does not
return
the value
1.Procedure accept input output parameter But
function
accept only input parameter.
2. Function return the value but procuder not
return the
value.
3.Some Condition procedure return the value like
text,
ntext,timestemp data type value but function not
return
text,ntext,timestemp value
Procedure is a bundle of code it does not have
return type
Function Have return type and take only input
Parameater
procedure is block of statement that doesnot return
value,function is accept parameters and return
output

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why doesn't "my string" & Chr$(13) do what I want?

1304


What is constructors and distructors.

2001


What is the use of Immediate, Local Window?

1734


Explain the types of Views in Listview Control.

2515


Explain about an event-driven programming language?

740


What is the default workspace?

1723


what are the Types of LockEdits in RDO?

1903


How to use hyperlink?

790


Which type of object requires this object?

1766


i want to retrive data from one spead sheet to another UI (workbook). control will search cell by cell for each row and load the data in another workbook(UI).

2024


How would you add column headers in listview control?

1870


How many File System Controls are there Explain?

1743


What are the uses of List View Control?

1749


Types of DBCombo boxes

1802


What is the use of NEW Keyword? Explain.

1761