Errata

Programming Visual Basic 2005

Errata for Programming Visual Basic 2005

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

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

Version Location Description Submitted by Date submitted
Printed Page 19
Last Paragraph on Page (5th)

the line says "Notice that the handler associated with the click event is now btnAllClick" should read "btnAll_Click"- When following the book instructions it will not rename to btnAllClick

Anonymous  Sep 04, 2009 
Printed Page 22
Hooking Up The Second Form To The First

In the Event Handler, enter this one line of code: frmCustomerDetails.Show()

Where do you add this? When I added it to the button click - which as has been coded
to this point displays a Message Box for all four buttons - the Customer Details form
now shows for each and every button click. Illustrations would be nice right about
here.

Anonymous   
Printed Page 36
2nd to last line of Example 2-2

2nd to last line of Example 2-2 should read

"frmCustomerDetails.CompanyNameParameter = companyName"

(as already correctly shown in Examples 2-1 and 2-3)
I suspect that each of these code examples is intended to have different
highlighting applied, to highlight the relevant sections being discussed.

Anonymous   
Printed Page 39
Chapter "Adding New Tables"; 2nd paragraph

Add -> DataTable
should be:
Add -> TableAdapter

Anonymous   
Printed Page 48
Example 2-6 continued, top of page

In the final case statement of the entire example, you've copied code from the
previous case statement. In my opinion, easily missed in testing if the student is
editing the code. Here is what you have:

Select Case btnName
Case "btnSupplierFind"
frmSupplier.CompanyNameParameter = _
filteredView.Item(0)"CompanyName")
frmSupplier.Show()
Case "btnCustomerFind"
frmCustomerDetail.CompanyNameParameter = _
filteredView.Item(0)("CompanyName")
frmCustomerDetail.Show()
EndCase

And it should be:

Select Case btnName
Case "btnSupplierFind"
frmSupplier.CompanyNameParameter = companyName
frmSupplier.Show()
Case "btnCustomerFind"
frmCustomerDetail.CompanyNameParameter = companyName frmCustomerDetail.Show()
EndCase

Because you've just set companyName to the value you want from the dialog box.

Anonymous   
Printed Page 68
Example 3-7

In the code, you've named the button btnPrev whereas in the rest of the preceding
examples it's been called btnPrevious. A minor oversight.

Anonymous   
Printed Page 485
2nd Paragraph

The book says:
"Output:
0 5 10 15 20"

But the actual output from running the program is:
"Output:
5 6 7 8 9"

Anonymous   
Printed Page 520
Figure 18-6

Figure 18-6 "Unboxing" - The figure looks as if it was originally created for C#. "int" is not a valid type in VB, VB doesn't use line terminators (;), and the typecast specified is incorrect (should use DirectCast or CType instead of "(int)".

Anonymous