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

What is ado data control in vb6 0?

892


How many File System Controls are there Explain?

1758


What is the use of debug Window?

1837


How to customize workgroup message?

839


how to use unicode data in vb6 regarding to telugu language, my output is in only telugu language

3365


What about DLL calls that require callbacks?

1218


Is visualvm free?

881


What are the types of API Types.

1962


What is data binding in vb net?

725


What is dao in visual basic?

744


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

1299


What is ODBC Direct and Microsoft Jet Database Engine ?

2133


Is it possible to Access BackEnd procedures?

1842


How can Visual Basic be used for server-side scripting?

733


What is the use of NEW Keyword? Explain.

1776