Situation:
Some things need to be done every time a program starts.
Actions:
Create a Sub for the code called initializeProgram
, or some such.
Explanation:
Common things initers do:
- Open files.
- Connect to databases.
- Clear old error messages.
- Clear old output.
- Set totals and counts to zero.
- Say g'day to the user.
- Tell the user how to get help.