Developers: Learn a New Programming Language or App Development with Deitel LiveLessons Videos!
s
menu
menu
Login  |  Register  |  Media Kit  |  Press  |  Contact Us  |   Twitter Become a Deitel Fan on Facebook  
Custom Search
 
AddThis Social Bookmark Button

Errata: Visual Basic 6 How to Program, 1/e

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

  • p.374 Assignments to four properties should read

    ScaleTop = 250
    ScaleLeft = -500
    ScaleWidth = 1000
    ScaleHeight = -500

  • p.375 Third paragraph. Third sentence. Replace "lower-left" with "lower-right".
  • p.378 Figure 9.7 (b) should read 3pi/2, not 3pi/4.
  • p.381 Equations in text are missing.
  • p.384 Fig. 9.14 should be vbHorizontalLine,not vbFSHorizontalLine.
  • p.391 Fig. 9.21 RGB values for vbBlack and vbWhite should be swapped.

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

  • p.585 Fig. 14.5 should read ANSI (not Unicode)
  • p.581 Fig. 14.4 line 14 which reads

    On Error GoTo error handler
    should read
    On Error GoTo errorhandler

  • p.587 Fig. 14.9 line 14 which reads

    On Error GoTo error handler
    should read
    On Error GoTo errorhandler

  • p.595 Fig. 14.12. Description for DateCreated, DateLastAccessed and DateLastModified. Replace file (three instances) with Folder.
  • p.604 Fig. 14.19 line 13 replace writing with reading.
  • p.651 Fig. 16.2 part 1 of 3 line 12. Replace 24 with 60.

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

  • p. 751 Fig. 17.52 line 23 should read private mChecker As CSpellCheckerEXE
  • p. 724 Section 17.7 first sentence. The clock control only contains a Timer.
  • p.727 Fig. 17.15 line 52 should read

    Print IIf(Hour(Now)<12,Hour(Now),Hour(Now)-12) &":";

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.

  • p.173 Exercise 5.9 part b should read Do Loop/While (not Loop/While/Wend)
  • p.175 Exercise 5.18 The Figure numbers referenced should be 5.16 and 5.17 (not 5.13 and 5.14)
  • p.242 Exercise 6.24 A procedure (not a loop) should be used to validate the wager.
  • p.293 Exercise 7.13 (3) should be $400-$499 (not $700-$799)
  • p.364 Exercise 8.6 should be Appendix B (not Appendix A)
  • p.364 Exercise 8.10 should refer to Fig. 8.31 (not 8.29)
  • p.365 Exercise 8.16 should be Longs (not Integers)
  • p.367 Exercise 8.29 should refer to Fig. 8.31 (not 8.29)
  • p.448 Exercise 10.6 Equation should read

    celsius = 5 / 9 x ( fahrenheit - 32 )

  • p.643 Exercise 15.8 (4 places, this page only) should read oldmast.rnd (not oldmast.dat) and newmast.rnd (not newmast.dat)
  • p.706 Exercise 16.24 should be mSavingsBalance (not mBalance)
  • p.764 Exercise 17.5 should read Section 17.7 (not Fig.17.7)
  • p.764 Exercise 17.6 should read Section 17.7 (not Fig.17.7) and TimeFormat should replace Format
  • p.764 Exercise 17.9 should read Exercise 17.6 (not Exercise 17.5)
  • p.859 Exercise 19.30 should read Exercise 19.29 (not Exercise 19.30)

Discounts on SafariBooksOnline.com subscriptions

 
Visual Basic 6 How to Program, 1/e Cover


ISBN: 0134569555
© 1999

Order now at
Amazon.com
Informit.com

Additional Resources
Download Code
Examples and
Other Premium
Content for
Registered Users

Login or Register to download this book's code examples and other premium content.

foot
Update :: December 16, 2017