Errata for Teach Yourself Visual Basic in 21 Days

Page 26: Figure 1.8's List box callout should read Combo box.

Page 50: The problem is that the file named HAPPY.BMP must not be located in the typical directory where VB normally places it. Depending on the installation options, the file may not even have been installed at all.

The overall steps needed to fix this problem:

1. Locate HAPPY.BMP

2. Replace the path in the program with the correct path on your PC.

Page 55: Add this to the end of the first paragraph: A twip is 1/1440th of an inch.

Page 58: #2's second code line should include Screen.Height instead of Screen.Width.

Page 58: #2's final paragraph (third line from bottom) should end with ...you can select a property... instead of ...you can select a control...

Page 82: 3rd paragraph, last sentence: view Code toolbar (not Object)

Page 104: Change the second paragraph's first 2 sentences to this: "After inserting a new menu position after &File, click the Menu editor's right arrow button. Visual Basic adds an ellipsis after &File that indicates the current item will be a menu option and will not appear on the menu bar."

Page 105: Step 3 should be: Click Insert button, Click Right Arrow button, Click Insert button 2 more times.

Page 107: Line 2: Change from as does to as to

Page 108: Change name in step 7 to caption and change Item 4 from mnuInitialMessage to mnuMessageInitial

Page 109: 3rd line from bottom should read and display the wrapper lines of... instead of and type the wrapper lines of...

Page 110: Add callout that reads, Object list to Figure 4.11 that points to the dropdown list box.

Page 124: Add to 1st paragraph of "Working with Variables" with: Variables hold values that can change.

Page 129: Remove the two pound signs (#) from the end of the number 45.1

Page 130: Table 5.5's first column is out of order. * should appear to the left of Multiplication, / should appear left of Division, and - should appear left of Subtraction.

Page 135: Formulas 4a and 4c have their first lines off center

Page 137 and BP2.1 on Page 138: Creates 6, not 3 labels.

Page 142: Table 6.1, replace == with >=.

Page 151: Listing 6.3 following first End If should be: Else lblBonus.Caption = "Good Work!"

Page 152: Listing 6.4 replace bonus is with sales are.

Page 171: Second paragraph from bottom of the page, second line from bottom of the paragraph, should begin with The second argument... instead of The third argument...

Page 173: Should be If (intResponse = 1) Then

Page 181: First Tip box, fifth line, should end with ...these three keys... instead of ...these three controls...

Page 223: The end of line 9 should read "txtSale3.Text."

Page 222: Figure's middle caption should read, "Can use P2, b, P1, and L2b."

Page 226: First paragraph, first sentence, swap calling with called where they appear.

Page 229: 2nd code line from bottom should read ...sent a text box... instead of ...sent a test box...

Page 238: In figure 8.4 the top arrow should be pointing to the "0.00" and the bottom arrow should be pointing to "75.00."

Page 240: Towards top of page, the paragraph that begins with The following code should read, The following code converts each argument to different data types.

Page 242: should read strVar = Chr(65) Stores an A in strVar

Page 242: Right before the 1-sentence paragraph that begins Figure 8.5 shows the message box... the two Chr(241)'s and the Chr(191) should be replaced with Chr(164) and Chr(169).

Page 267: Second paragraph from top of page, replace both occurrences of Font to Color

Page 252: In listing 8.8 line 12 should be DueDate = varResult + 1

Page 304: In the code, replace four occurrences of txtTimer1 and txtTimer2 with txtTime1 and txtTime2

Page 316: The answer to Day 10, #1, should read as follows:

The MouseDown event responds to specific mouse buttons and lets you know which button the user clicked through the arguments the events pass to their procedures. The Click, DblClick, and MouseUp events don't keep track of which button the user clicked to generate them.

Page 347: Last full paragraph, the final sentence should read, ...demonstrates how you determine the... instead of ...demonstrates how the ScaleMode values determine the...

Page 374: Add an empty set of parentheses to the end of the line that reads, intFileNumber = FreeFile()

Page 374: The Close format near bottom of the page should include brackets around the pound sign, #.

Page 401: Replace 400 on line 19 with 4000

Page 414: Replace last word next to FontBold entry with boldfaced instead of italicized.

Page 431: List in middle of page should include 2 - Oval draws an oval

Page 461: FormName property in Table BP7.2 should read frmScroll.

Page 484: The End If should be on a line by itself on line 23.

Page 523: Microsoft has removed the www.microsoft.com/activex site.

Page 536: Before the Tip box, change final sentence to ...select Plan.bmp from the \Graphics\Bitmaps\Assorted folder, which...

Page 541: Middle paragraph that begins with Click Next should be Set Mapping in 1st line, Set Attributes

Page 568: Add entry for Excel in database formats at the top of the page.

Page 595: First entry should read &> instead of &Next

Page 623: Top paragraph, final sentence, should read ...Web site for some of...

Page 746: I believe the type mismatch error comes from the second-to-the-last line, line #19 on page 747. Instead of the comma inside the parens, it should be an ampersand. Here is the corrected statement:

intAnswer = MsgBox("You live in " & strBoth & " Location")