DOCUMENT:Q195269 12-DEC-1998 [mspress] TITLE :Visual Basic 6 Step by Step Comments and Corrections PRODUCT :Microsoft Press PROD/VER: OPER/SYS:WINDOWS KEYWORDS:kbdocerr ====================================================================== --------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual Basic Professional 6.0 Step by Step --------------------------------------------------------------------- SUMMARY ======= This article contains comments, corrections, and information about known errors relating to the Microsoft Press book Microsoft Visual Basic Professional 6.0 Step by Step, ISBN 1-57231-809-0. The following topics are covered: - Page xvii: Support URL has changed - Page xxv: Support URL has changed - Page 135: Incorrect Formula - Page 307: Explanation Of Dimensions Technically Incorrect - Page 594-596: Additional steps may be necessary - Lesson 18: Problems loading project - Lesson 22: MyDHTML code Produces Compile Error MORE INFORMATION ================ Page xvii: Support URL has changed ---------------------------------- Page xvii: Support URL for Microsoft Press has changed. Change: http://mspress.microsoft.com/support/support.htm To: http://mspress.microsoft.com/support/ Page xxv: Support URL has changed --------------------------------- Page xxv: Support URL for Microsoft Press has changed. Change: http://mspress.microsoft.com/support/support.htm To: http://mspress.microsoft.com/support/ Page 135: Incorrect Formula --------------------------- Page 135; two lines above the subheading Working With Visual Basic Operators: Change: "Area=2Pi r^2" To: "Area=Pi r^2" Page 307: Explanation Of Dimensions Technically Incorrect --------------------------------------------------------- Chapter 11, page 307, "Declaring a Fixed-Size Array" The syntax for a fixed-size array is given as: Public ArrayName(Dim1Elements, Dim2Elements, ...) As DataType The explanation indicates that "Dim1Elements is the number of elements in the first dimension of the array." Change to: "Dim1Elements represents the number of the last element in the first dimension of the array." Page 594-596: Additional steps may be necessary ----------------------------------------------- Page 594-596, "Create a custom data environment": Additional steps may be necessary and are not included in the instructions. In Step 1, the second sentence reads: "Click More ActiveXDesigners if you don't see the Add Microsoft Data Environment 6.0 Command" If you follow this alternative, the Data Environment window will appear and additional steps are necessary to get to the Connection1 Properties window which is required for step two. The additional steps are: In the Data Environment window, right click on Connection1, and then select properties from the drop down menu. You will then see a dialog box named Connection1 Properties. Select the Connection tab and proceed with step two. In Step 3, page 596, last sentence reads: "Visual Basic displays the Command1 Properties dialog box." If you don't see the Command1 Properties dialog box, there are additional steps needed to proceed to step 4. The additional steps are: If you don't see the Command1 Properties dialog box, right click on Command1 in the Data Environment window and select Properties from the drop down menu. The Command1 Properties dialog box will appear on your screen. You can then proceed with step 4. Lesson 18: Problems loading project ----------------------------------- Lesson 18, Page 467: "Run the FreeMem program" When opening the FreeMem project file, the mscomctl.ocx file will not load. When you proceed with step one on page 467, you will receive a message that says that the mscomctl.ocx "could not be loaded--continue loading project?" Workaround: When you receive the message, click Yes. An "error during load" message will appear. Click OK. With the FreeMem project open, select project from the File menu, and then click Components. In the Components window, make sure the Controls tab is selected, scroll down to Microsoft Windows Common Control 6.0 and click the check box to select it. The file location should read, C:Windows\System\mscomctl.ocx. Click Apply and then Close. The progress bar is added to the tool box. In the Project window double-click Form1 (FreeMem.frm) to view the object. You will receive another "error during load" message. Click OK. Delete the first pictureBox named pgbPhysMem and replace it with a progress bar of the same name. Delete the second pictureBox named pgbVirtMem and replace it with a progress bar of the same name. Continue the exercise from step 2 on page 467. Lesson 22: MyDHTML code Produces Compile Error ---------------------------------------------- Lesson 22: If you attempt to enter and compile the code for the MyDHTML project, the Code will produce a "Type Mismatch" compile error. However, the code on the CD-ROM can be compiled and run normally. To avoid this compiler error, when typing in the code from the book, make The following modifications: Page 545, last line of code: Change: Result.innerText = "Wins: " & GetProperty("Wins") To: Result.innerText = "Wins: " & GetProperty _ (BaseWindow.Document, "Wins") Page 546, bottom of page, last lines of code Change: x = GetProperty("Wins") Result.innerText = "Wins: " & x + 1 PutProperty "Wins", x + 1 End If End Function To: x = GetProperty(BaseWindow.Document, "Wins") Result.innerText = "Wins: " & x + 1 PutProperty BaseWindow.Document, "Wins", x + 1 End If End Function Page 547, code at bottom of the page Change: PutProperty "Wins", x + 1 To: PutProperty BaseWindow.Document, "Wins", x + 1 Microsoft Press is committed to providing informative and accurate books. All comments and corrections listed above are ready for inclusion in future printings of this book. If you have a later printing of this book, it may already contain most or all of the above corrections. Additional query words: ms_press vb60 sbs ====================================================================== Keywords : kbdocerr Platform : WINDOWS Issue type : kbinfo ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1998.