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
State about the different types of visual basic data?
How would you convert a form into document?
what is the Difference between Recordset and Querydef?
DHTML Is used for what?
How do you zoom in visual basic?
what is the Difference between Tabletype and Snapshot?
How would you add elements in TreevieW Control.
Is it possible to change menu runtime using API? If yes? Specify the function names.
What is ODBC Direct and Microsoft Jet Database Engine ?
How would you attach pictures in column headers of List View Control?
When should we use recursive programming?
Explain about the basic features of Visual basic?
How would you Create a Query Builder and Explain its uses ?
What do you mean by provider?
What is the need of tabindex property is label control.