What is the difference between procedure and functions in VB?
Answer Posted / sweeta chandwani
1:-Procedure is a set of code,it simply performs the job(work) which is assigned to it...Function accepts the parameters & does the calculations.
2:-Procedure does not return a value...Function returns a value
3:-while defining the procedure 'sub' keyword is used...While defining the function,'function' keyword is used.
4:-Syntax for procedure:
sub procedure_name(arguements)
statements
End sub
---------------------------
Syntax for function:
function function_name(arguements) as return type
statements
End function
| Is This Answer Correct ? | 129 Yes | 8 No |
Post New Answer View All Answers
Explain the differences between ActiveX Dll and ActiveX Exe?
Explain what is Visual basic?
Can you create a Updatecascade, Deletecascade relation in Ms- Access?
What is understand in resource tracking?
How about Access 2.0 compatibility?
What is the default workspace?
How do I force a file dialogue box to reread the currect disk?
Is there any way to pass a variable to a form apart from using global variables?
Explain the working of templates?
How do I create a window with a small title bar as in a floating toolbar?
What are the tools in visual basic?
What is Parser Bug?
___ is a property to resize a label control according to your caption.
How can you check whether a record is valid record or Invalid record using ADO control or Object?
Does VB support pointers to functions?