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 about control properties?
Is it possible to Manipulate data through flexgrid? Explain.
How can you check whether a record is valid record or Invalid record using ADO control or Object?
Scope of API's can be of types, what are they?
How can you get selected file from file system Control?
State about the different types of visual basic data?
How would you create properties in ActiveX Control?
Explain about declaring variables in Visual basic?
What is a thread pool and how are the threads within a thread pool managed?
what are the Differences between Recordset and Resultsets?
What is the need of tabindex property is label control?
Explain about the basic features of Visual basic?
How do I play MID, WAV or other multimedia files?
What is DAO?
What is Mask Edit and why it is used?