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
What type of databases you can access through ADO Data Access Object?
Discuss the working with to-do lists.
__ no of controls in form.
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).
What can you do with visual basic?
I'm getting error message "Reserved Error [-nnnn] ("There is no message for this error")" from Jet Engine 2.0.Why?
Can you create a updatecascade, Deletecascade relation in Ms- Access? If no, give on eample.
What is executenonquery in vb net?
How can I access a record by record number?
How would you run your ActiveX Document Dll?
What are the different procedures associated with the object?
How do I make an animated icon for my program?
What is file in vb?
Is there any way to pass a variable to a form apart from using global variables?
what are the types of cursors in DAO?