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
Why doesn't "my string" & Chr$(13) do what I want?
What is constructors and distructors.
What is the use of Immediate, Local Window?
Explain the types of Views in Listview Control.
Explain about an event-driven programming language?
What is the default workspace?
what are the Types of LockEdits in RDO?
How to use hyperlink?
Which type of object requires this object?
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).
How would you add column headers in listview control?
How many File System Controls are there Explain?
What are the uses of List View Control?
Types of DBCombo boxes
What is the use of NEW Keyword? Explain.