Whether you have realized it or not, every application that you have developed so far in this book has relied on procedures to organize and store program code. In this chapter, you will learn how to create your own custom procedures. You will learn how to create Sub and Function procedures and will understand the difference between the two. You will also learn how to pass data to your procedures for processing and how to return data from Function procedures. In addition, you will get plenty of chances to create and work with custom procedures when you create this chapter's game project, the Hangman game.
Specifically, you will learn how to:
Organize the programming logic that makes up your applications into procedures in order to make them easier to develop and maintain
Create custom procedures
Pass and return data to and from procedures
Streamline your applications by placing reusable code within procedures
Develop procedures that can process optional data