Visual Basic 2008 Programming: Business Applications with a Design Perspective
Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9
Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Appendix A Appendix B Appendix C Home
Loading
Last change: February 13 2016 18:48:19.

 Chapter in PDF

Chapter 2: Visual Basic Programming Concepts
Last change: February 13 2016 18:48:07.
<<PreviousNext>>

2.7 Overview of the Code Structure

You have learned that the code in event procedures handles the events and that when developing code for these procedures, you should use the event procedure templates provided by the IDE. You have also learned that the order of the procedures in the code window is not important because they are invoked by the event, not by the order in which they appear. Also, in general, code in a procedure is executed top down. But is there some kind of code in a procedure that will not get executed in sequence?
In terms of the order in which statements are executed, there are basically two types of statements: (1) statements that bring results and execute sequentially and (2) statements that direct flow of execution control. You will study each of these types in detail in later chapters, but here is a brief look at each type.

Last change: February 13 2016 18:48:05.
  1. Object Naming Convention
  2. Changing the Object Names in the Project
  • 2.7 Overview of the Code Structure
    1. Statements That Bring Results and Execute Sequentially
    2. Statements That Direct Flow of Execution Control
    3. <<PreviousNext>>