Programming in a modular style is very useful:
- It allows us to divide our problem into managable sized chunks.
- We can test procedures in isolation to ensure they work as expected.
- We can reuse them again and again.
- Modular Code that is re-used only requires undating in one location regardless of how many times it is used.
There are two types of procedure that can be used in VB
- Subs – return nothing – they just DO!
- Functions – return something – send back an answer!