What is the difference between procedure and functions in VB?

Answer Posted / ramani ghanshyam p

What is deffrent between Procedure and Fuction ?
ans.1 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 ?    41 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of ActiveX Documents?

1575


I get a "file not found" error on the IIF function when I distribute by program. Why?

1044


How the image application?

584


Can any one please suggest which institute is providing Advance Excel & VBA Macros in Excel training in Hyderabad.

1735


How many File System Controls are there ? Explain.

1559






To.set the command button for ESC ___ Property has to be changed.

992


___,__,___ are the type of combo box?

1153


___,___ and __ are difference between image and picture controls.

1117


Difference between Recordset and Resultsets.

3551


___,_____ and ____ container objects.

1036


Explain the types of Views in Listview Control.

2308


Maximum Control Names length?

1947


What is ActiveX? Explain.

1453


How many ways we can access file using VB?

1614


Can you create a tabletype of recordset in Jet connected ODBC dbengine.

1461