A procedure is a seperate section of code which performs one or more specific tasks and is identified by having a name.
Four types:
- Event
- Sub
- Function
- Property
Why use procedures?
- Avoid repeating code.
- Make the code more readable
- Help in debugging a program
- Use a procedure in other programs
- Pass parameters.
What is a function?
A procedure could be considered as something which is a set of commands which do not return a value.
No comments:
Post a Comment