In This Chapter Keywords and tokens are the atoms of computer languages. Visual Basic .NET's grammar is the equivalent of the physical laws that govern the interactions between these atoms . Statements are the molecules, and the procedures are the basic building blocks of every program. Every object-oriented program contains classes made up of procedures that describe the behavior of the classes. The classes and the interaction of those classes define what a particular system is and does. Chapter 5 covers functions and subroutines in depth. Because the next building block of aggregation is the structure, the Structure construct is covered in detail. Understanding how to declare, define, and implement procedures and their affiliated arguments and structures is the final precursor to advanced programming topics. This chapter demonstrates how to define procedures and how to use the ByVal, ByRef, Optional, and ParamArray argument specifiers. The latter part of the chapter examines the Structure construct, which replaces the VB6 Type. Structure supports additional behaviors that Type doesn't support, including structure methods , constructors, and properties. |