Self-Review Exercises and Exercises are listed at the end of this document.
We wish to thank our many readers who took the time to email us with errata. If you find errata not listed on this page, please email us at deitel@deitel.com. Remember to include the book title and edition.
Chapter 2
- p. 41 Fig. 2.26. Close button arrow should point to the x in the Welcome to Visual Basic! window.
Chapter 3
- p. 52 Print button property setting should read cmdDisplay (not cmdPrint)
- p. 54 Second paragraph from the top. Three instances. Replace End with Exit.
- p. 54 Third paragraph from the top. Second sentence. Replace Properties with Project.
- p. 55 First sentence in paragraph. Replace Figure 3.6 with Figure 3.5.
- p. 62 Replace -32767 to +32768 with -32768 to +32767.
- p. 68 Fig. 3.16. In step 1, replace 5 ^ 5 with 5 ^ 2.
Chapter 4
- p. 106 Last Paragraph. Replace four instances of ∞ (infinity symbol) with x.
- pg. 114, third row in Fig. 4.17 should reference a Label, not a textbox, and should be called lblPrompt.
Chapter 5
- p. 137 Replace txtDisplay with txtInterest.
- p. 146 Replace two instances of 99989 with 999898.
- p. 147 Example does not print "Access Denied" or "Access Granted".
- p. 151 Second paragraph. Fourth sentence. Replace y with x.
Chapter 6
- p.187 Third paragraph. Replace text "one or parameter" with "one or more parameter".
- p.188 First paragraph. The images are not available for download. They are included on the CD in the back of the book and with the Visual Basic 6 Multimedia Cyber Classroom. See FAQ at http://www.deitel.com.
- p.197 Declaration in AllVariablesAreStatic should read
Dim q, a, s (not Dim q, a, s;)
- p.202 First sentence. 0 <= dieFace <= 6 should be 0 <= dieFace < 6.
- p.211 Example does not contain an Exit button
- p.226 Fig. 6.31. In Example column. Change Int (three instances) to Fix. Change Round(4.844) is 4 to Round(4.844) is 5.
Chapter 7
- p.250 Replace "... and four elements for Currency array a." with "... and five elements for Currency array a."
- p.272 Fig. 7.10 replace subscript (two instances) with index
- p.284 Fig. 7.17. Width of form is too small to display all six numbers. A 7 should appear to the right of 3 in the second screen capture.
Chapter 8
- p.309 Fig. 8.2 Constant vbUseCompareOption no longer exists.
- p.325 Fig. 8.15 Line 16. Replace CVar with CStr.
Chapter 9
Chapter 10
- p.413 Fig. 10.5 should be Click, not Clicked.
- p.437 should read Form_MouseUp, not Form_MouseDown, and MouseUp, not MouseDown.
Chapter 11
- p.472 First paragraph. Replace Line 12 with Line 22.
- p.472 Replace frmForm1.imgImage.Picture = mImagesArray(0) with frmForm1.imgImage.Picture = mImagesArray(1)
- p.474 Fig. 11.16 Line 48's comment. Replace comment text with Prevent Form_Unload from being called.
- p.486 Fig. 11.28 Add on line 16: .Value = tmrTimer.Interval
- p.488 First paragraph. Replace Width (three instances) with With.
Chapter 14
Chapter 16
- p.651 Fig. 16.2 Line 12 which reads
mMinute = IIf((m >= 0 And m < 24), m, 0)
should read
mMinute = IIf((m >= 0 And m < 60), m, 0)
Chapter 17
Chapter 18
- p.775 First three paragraphs. Should be in the following order: [Note that the last sentence of the first paragraph has been moved to the end of step 6.]
Once you locate the directory, click Biblio.mdb then press the Open button. A string containing the location and name of the database now appears in the Select or enter a database name TextBox.
6. Click the Test Connection button to determine if the connection succeeded. If the connection is successful, a dialog box appears with the message “Test connection succeeded”). Click the OK button to dismiss the message. If the connection fails, repeat the preceding steps. Press the OK button to dismiss the Data Link Properties dialog.
7. In the Property Pages dialog’s RecordSource tab, select 2–adCmdTable from the Command Type ComboBox to specify that a table in the database will be the source of the data. Select Authors from the Table or Stored Procedure Name ComboBox to specify that the data will be retrieved specifically from the Authors table in the database. [Note: These properties can also be set programmatically to allow the ADO Data Control to manipulate different tables at execution time.]
- p.781 paragraph after [startValue-endValue] should read d (not D), should read [a-e] (not ?)
- p.784 Fig. 18.14 Should read ADO (not DataGrid)
- p.785 Fig. 18.14 Should read ADO (not DataGrid), FetchComplete and FetchProgress should be removed
Chapter 19
- p. 825 Second line from the bottom: tcpServer.SendData(message) should be tcpClient.SendData(message).
Chapter 21
- p.83 SRE 3.5 part d should use the integer division operator (\) not the floating-point division operator (/).
- p.85 SRE 3.8 part e should read:
m = 10 Mod 3 ^ 1 ^ 2 - 8
m = 10 Mod 3 ^ 2 - 8
m = 10 Mod 9 - 8
m = 1 - 8
m = -7
- p.122 SRE 4.3 part e should read
While x <= 1000
Print x
x = x + 1
Wend
- p.122 SRE 4.4 part f. There is no question for part f.
- p.122 SRE 4.5 part a
count = count + 1 should read count = count + 2
- p.123 SRE 4.5 part c
Do Until x = 1 should read Do Until x = 0
- p.171 SRE 5.1 part d should read
x = 1
Do
Print x
x = x + 1
Loop While x <= 20
The following are corrections to the self-review exercises.