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 are the types of cursors in DAO?

1415


What are 3 main differences between flexgrid control and dbgrid control?

1880


__ no of controls in form.

1074


what are the Types of LockEdits in RDO?

1558


What is ado in vb.net?

513






How would you find out the value property in Slider Bar Control?

1439


How would you create properties in ActiveX Control?

1437


How would you create Visual basic Document file?

1387


Types of LockEdits in DAO? 51 .Types of Recordsets.

1367


What can you do with visual basic?

569


How do I tell when an application executed using the SHELL command is finished?

1097


Explain about manipulating the recordset object

572


_____ collection in recordset used to assign a value from textbox to table columns without making abinding in datacontrol.

1302


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

1001


How to customize workgroup message?

610