7. The Language, Part 3: Intransitive Verbs

In the last chapter we explored Visual Basic expression syntax and had our first look at working with the objects of object-oriented programming. In this chapter, we’ll finish up our examination of the language syntax by examining the intransitive verbs of the language: commands.

There are two important types of commands in Visual Basic, and we’ll examine both of them in this chapter. Control-of-flow commands determine what code executes when (and how often). Exception-handling commands tell your application what to do when things don’t go quite as expected, which of course things don’t, more often than not.

Although it’s not unknown for a program to start execution at line one and continue, line by ...

Get Fluent Visual Basic® 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.