Topic: Visual Basic

Beginning Microsoft Visual Basic 2008 (0470191341) cover image

Beginning Microsoft Visual Basic 2008

Thearon Willis, Bryan Newsome
ISBN: 978-0-470-19134-7
912 pages
May 2008
This title is out-of-print and not currently available for purchase from this site.

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
4 Error in Code
the sample code that is provided should contain a greater than or equal to operator in the second IF statement.
50 Error in Code
Highlighted code comment "Delcare variable" should be "Declare variable"
98 Error in Code
the code area reads:

'Is intNumber greater than or equal to 27? If intNumber = 27 Then MessageBox.Show("Is 'intNumber' greater than or qual to 27? Yes!", "if Demo") Else MessageBox.Show("is 'intNumber' greater than or qual to 27? No!", "If Demo") End If

The operator is wrong.
If intNumber = 27 Then
Should be:
If intNumber >= 27 Then
5 171 Error in Text
Step 3:

Click the Test button

Should be

Click the List Customer button
192 Error in Try It Out
In Step 6 of the Try It Out on page 192, the reader is asked to set the Height property twice (to two different values: 185 and 200):

The height of the image should be 185. The second height should not be there.
245 Error in Text
In the Try It Out, point number 2:

'Update the status bar text
StatusText = "The text is read"<---- *
End Sub

This should be "Red" NOT "Read."
12 408 Error in Text
Step 4:


Should be

626 & 627 Error in javascript
The javascript uses the innerText property that is not supported in firefox. To make the app work in firefox and IE change the javascript to

document.getElementById("lblClient").innerHTML = "Changed";
document.getElementById("lblServer").innerHTML = "Server";

inside of the btnClient_onclick() event.
636 Alternate Version of Text
On line 16:

To the Red subfolder, add three new text files.

text files could also be skin files.
627 Error in Text
VB Script

Should say

640 Error in Text
Step 8:

The page directive is not consistent with the How It Works example on page 644.

To be consistent, it would be

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" MasterPageFile="~/MasterPage.master" Theme="Red"
644 Error in Code
The code for News.aspx does not need the <hr/><br/>.
650 Error in Text

turns on sorting

Should be

turns on paging
650 Error in Text

turns on sorting

Should be

auto generate columns