Chapter 10. Creating Modules and Procedures

After completing this chapter, you will be able to:

  • Employ structured programming techniques and create modules containing public variables and procedure definitions.

  • Practice using public variables that have a global scope.

  • Increase programming efficiency by creating user-defined functions and Sub procedures.

  • Master the syntax for calling and using user-defined procedures.

  • Pass arguments to procedures by value and by reference.

In the first nine chapters of this book, you have used event procedures such as Button1_Click, Timer1_Tick, and Form1_Load to manage events and organize the flow of your programs. In Microsoft Visual Basic programming, all executable statements must be placed inside some procedure; ...

Get Microsoft® Visual Basic® 2008 Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.