Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

6. The Language, Part 2: Transitive Verbs

6. The Language, Part 2: Transitive Verbs

In the last chapter you saw how to create the nouns of Visual Basic: declared elements. In this chapter, we’ll look at one of the two kinds of verbs: the EXPRESSIONS that are roughly (very roughly) equivalent to transitive verbs. (If it’s been awhile since you studied grammar, a transitive verb is one that takes both a subject and an object: “He bought the book.”)

Many people equate programming expressions to mathematical formulae. That’s not wrong, exactly, but expressions are a lot more than that. Of course you can say, “x = 1 + 1” in Visual Basic, and you’ll use an expression to say it, but you’ll also use expressions to say things like, “If Dumbo is an elephant, give him some peanuts” and “Greedy wants the biggest apple in the barrel”.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint