Chapter 8: Enhancing Code Structure and Organization


OVERVIEW

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




Microsoft Visual Basic 2005 Express Edition Programming for the Absolute Beginner
Microsoft Visual Basic 2005 Express Edition Programming for the Absolute Beginner
ISBN: 1592008143
EAN: 2147483647
Year: 2006
Pages: 126

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net