Errata


Print Print Icon

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



Version Location Description Submitted By
Printed Page 108
pad = 11 - (sum % 11) ditto page 110 for VB version

'One-Off Error'

Your code allows values for Pad in the range 1 to 11, whereas the check digit is in
the range 0 - 10.

The solution is to set the Pad == 11 value to zero (which is correct in the written
check algorithm)

so, following the above line add:

Pad = Pad == 11 ? 0 : Pad;

Anonymous 
Printed Page 357
Example 10-3 and the last paragraph

I. Example 10-3 has the base.OnPaint(e) call as the last line in the derived
OnPaint() method. The call should be on the first line, else you run the risk of the
base routine interfering with what the derived routine does.
Note: Examples 10-4 and 10-5 do call the base routine on the first line.

II. The last paragraph, in describing both Examples 10-3 and 10-4, says:
The last line in the overridden method chains up to the base method...
it should say:
The first line in the overridden method chains up to the base method...

Anonymous