Home  CV/Resume   Books   Expert Witness   Free Tutorials  
Book Errata

C++ Programming Fundamentals
chapter 2 Image 2.7 is wrong. It should be

Learn VB.Net 1st Edition
Chapter 1 and 2
  • The example for the calculator refers to a control array, these are no longer supported in VB.Net, just use single controls.
  • The calculations for the math have an error in the select case statement. All cases say to add. Each case should do the appropriate math.
Chapter 5 The database example (5.1) works fine up to the point where you fill in the code for the buttons. The appropriate code for the form load, and all click events is shown here:
Public Class Form1
Inherits System.Windows.Forms.Form
Dim dbindingmanager As BindingManagerBase

#Region " Windows Form Designer generated code "

#End Region

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' This code is needed to fill in the data set
' with data from the underlying database.
OleDbDataAdapter1.Fill(DataSet11)

' set the binding manager
dbindingmanager = Me.BindingContext(DataSet11, "students")

End Sub

Private Sub btnnext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnnext.Click
dbindingmanager.Position += 1
End Sub

Private Sub btnprevious_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnprevious.Click
dbindingmanager.Position -= 1
End Sub
End Class
Private Sub btnadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnadd.Click
dbindingmanager.AddNew()

End Sub

Private Sub btndelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btndelete.Click
dbindingmanager.RemoveAt(dbindingmanager.Position)

End Sub

Private Sub btnupdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnupdate.Click
' you must stop editing before updating
dbindingmanager.EndCurrentEdit()

'Update from the dataset
OleDbDataAdapter1.Update(DataSet11.students)
'clear and refill dataset
DataSet11.Clear()
OleDbDataAdapter1.Fill(DataSet11)
End Sub


Advanced Java Script 2nd Edition

  1. In this book I discuss the 'Live Payment' (on page 13)product being used by Netscape. Netscape has discontinued this product.
    The link to their statement on this issue is provided here
    Live Payment
  2. On page 53 I erroniously state that their is no switch statement in JavaScript but it may
    be included at a later date. It has already been included.
  3. On page 53 the code says
    var number = prompt("Enter a number:", 0)
    alert(number, " is a ", typeof number) // "... is a string"
    number = parseInt(number)
    alert(number, " is a ", typeof number) // "... is a number"
    It should say
    var number = prompt("Enter a number:", 0)
    alert(number + " is a " + typeof(number)) // "... is a string"
    number = parseInt(number)
    alert(number + " is a " + typeof(number)) // "... is a number"


If you are aware of any errors in any books, please let me know:Hey Chuck,I found an error!