Errata

Microsoft® Visual Basic® 2010 Step by Step

Errata for Microsoft® Visual Basic® 2010 Step by Step

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Printed
Page 140
2nd paragraph

text in paragraph refers to each section of the Select Case block assigning a sample value of one of the fundamental data type variables to the Text Property of the Label4 object.

In fact the values are assigned to the text property of the Label3 object...

Just a typo I imagine.

Cheers

Stuart

Note from the Author or Editor:
This careful reader correct! On p. 140 of MS Visual Basic 2010 Step by Step, in the second paragraph below the screen shot, the second sentence should say "property of the Label3 object on the form" rather than "property of the Label4 object on the form". This was just an inadvertant typo in the text--the screen shot and sample code are correct. Thank you!

Stuart Mather  Jan 03, 2012  Mar 16, 2012
Printed
Page 212
Debug Test project

The Debug Test project file doesn't contain the error it is supposed to contain for the debug exercise. To "fix" it, open the project and in the code editor, change -
If Age >= 13 And Age < 20 Then
to
If Age > 13 And Age < 20 Then
and save.

Note from the Author or Editor:
The reader is correct. One of the goals of Chapter 8 is to debug a sample program and locate the error. However, the project provided on disc for the first printing of the book (Debug Test) has the error already corrected somehow. Ideally, future printings of the book should have the program corrected (i.e. the "=" should be removed from the statement

Age >= 13 and Age < 20 Then

on the companion CD. As a work around, readers who consult this errata page can also remove the equal sign (=) in the Debug Test program before completing the exercise in Chapter 8. Note that the screen shots in the book are correct--but somehow during the final disc testing the "corrected" version of the program was placed on the CD by mistake.

Anonymous  Oct 19, 2010 
Printed
Page 213
paragraph 8

The problem is actually the absence of an error in the Debug Test project in the software on the CD that accompanies the book. In the project as provided, the error the reader is supposed to correct is already corrected. For the exercise to work correctly, the line that reads "If Age >= 13 And Age < 20 Then" in the project should read "If Age > 13 And Age < 20 Then".

Note from the Author or Editor:
The reader is correct. One of the goals of Chapter 8 is to debug a sample program and locate the error. However, the project provided on disc for the first printing of the book (Debug Test) has the error already corrected somehow. Ideally, future printings of the book should have the program corrected (i.e. the "=" should be removed from the statement

Age >= 13 and Age < 20 Then

As a work around, readers who consult this errata page can also removed the equals sign (=) in the Debug Test program before the complete the exercise in Chapter 8. Note that the screen shots in the book are correct--but somehow during the final disc testing the "corrected" version of the program was placed on the CD.

John Quinn  Dec 02, 2010 
Printed, PDF
Page 237
1st paragraph

Book describes looking for exceptions to (specifically) System.Drawing.Bitmap.Fromfile method by accessing Help for this method. From the book it states, 'If you open the Visual Studio Help documentation for FromFile you will see an "Exceptions" section.'

I have my help setup for local, and I see no "Exceptions" section to the Help for this method as a result of the immediate link. There is an "Exceptions" section under the "FromFile(String)" and "FromFile(String,Boolean)" Overload List links, but this is not obvious from the narrative.

Thank you.

Note from the Author or Editor:
The question here concerns how one displays the Image.FromFile(String) topic in the online Help, which contains information about the exceptions topic being presented in Chapter 9. The reader has posted an errata comment indicating that the Tip box on p. 237 is not clear enough. In the first printing of the book, the statement reads

"From here, you can open the Image.FromFile Method (String) topic."

To clarify the procedure, the sentence should be changed to:

"From here, click on the Image.FromFile(String) topic."

Thomas O'Neil  Sep 28, 2010  Oct 14, 2011
Printed
Page 277
quoted line in 1st paragraph and table in 2nd paragraph

There is an inconsistency between the quoted line of code and the entry in row 5 of the table. Either the line of code should read "Employees(5) = "Lesile" or the entry in row 5 should be "Leslie."

Note from the Author or Editor:
A very careful reader has noted that there is a spelling typo in the art work in the middle of p. 277. There the string value "Leslie" is mispelled as "Lesile". (I'm talking about right accross from the number 5 in the box representing the Employees array element.) This was just a mistake on our part and the mistake should be fixed. Thank you!

John Quinn  Dec 06, 2010  Oct 14, 2011