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.
Version |
Location |
Description |
Submitted by |
Date submitted |
Printed |
Page index
I've been working my way through "Learning VBScript" by Paul |
Lomax. The book is SO good, but the index is not as complete as it could be.
Every time I go to the index to try to find something that I remember reading,
it's NOT THERE and I have to go flipping through pages one by one to find the
part that I remembered. If you revise this excellent book in
the future, I strongly suggest that you consider having a new index done.
(Other than that, I love this book and I've learned a LOT from it!)
|
Anonymous |
|
Printed |
Page 8
Figure 1-5 |
Using MSIE Version 5.5 (Script engine build 5207) under Win200 Pro (Service
Pack 2).
The parameters in the Subs (e.g.) "Sub Cals2_MouseMove(s,b,x,y)"
seem to prevent the code from being executed. I finally got the code to be
executed when I went through all the Object_MouseMove and
Object_OnMouseMove subs and removed the parameters from them all. I think
that only the Object_OnMouseMove subs are actually being executed.
It may be that the code never worked but I doubt that so I'm guessing it's
a change in the DOM or engine that's causing the difficulty.
|
Anonymous |
|
Printed |
Page 27
Both Figures on page 27 show this error |
The examples given are not running with the current version of VBScript
(Version 5). Anything accessing frames seemsto screw up. Thats pretty much
all the early examples.
This appears as a customer comment elsewhere on the site but I can't find any
fix for it. Please help, I have only had this book a few hours.
|
Anonymous |
|
Printed |
Page 63
2nd paragraph (Calling Scripts Directly from HTML Elements) |
The line reads:
The second method of calling a script, which will probably appeal to those of you with JavaScript experience, specifies the procedu
re name as part of the HTML object definition, as in the following definMyButtonition of an intrinsic HTML command button:
MyButton is placed in the middle of the word definition
|
Anonymous |
|
Printed |
Page 90
|
The first sentence of the 2nd full paragraph now reads:
"The functions UBound and LBound can be used to find the lower index
and the upper index, respectively, of an array."
Should read:
"The functions LBound and UBound can be used to find the lower index
and the upper index, respectively, of an array."
|
Anonymous |
|
Printed |
Page 93
Figure 3-4 |
The array indexes are backwards.
They should be: 0,0 0,6
3,0 3,6
|
Anonymous |
|
Printed |
Page 96
In Table 5-5, the third line of the description for Key Property now |
reads:
"is oCollec.Item(Index) where Index is the one-"
Should read:
"is oCollec.Key(Index) where Index is the one-"
|
Anonymous |
|
Printed |
Page 107
|
The third sentence of the 2nd paragraph reads:
"If both expression1 and expression2 are strings, the
'greater' string is the one that is the longer."
The way this reads, "abc" would be greater than "zz." Perhaps this
should be further explained that if the strings are identical for the
length of the shorter string, then the longer string is considered
greater?
|
Anonymous |
|
Printed |
Page 123
2nd paragraph (bottom of page) |
The code sample for case statement lists three options, while the paragraph
describing the code sample states that there are only two case options.
CODE:
Select Case strSelected
Case "This"
alert "You have chosen this"
Case "That"
alert "I see you want that, huh?"
Case "The Other"
alert "Do you really want the other"
End Select
DESCRIPTION
You'll notice in Example 4-5 that although three items are defined by the
<OPTION> tag and therefore appear in the web page's drop-down list box,
there are only two Case options. That means that, if the user selects the
"The Other" option and clicks the Click ME button, nothing happens.
|
Anonymous |
|
Printed |
Page 139
The last sentence of the sidebar "Passing parameters by reference and |
by value" states that "whereas VBA by default passes variables to subroutine
by REFERENCE, VBScript only passes variables to them by VALUE."
However, when I tried testing my codes, it seems like VBScript by defalut
passes variables BY REFERENCE. I am just a beginning programmer, so I just
want to confirm that my findings are correct.
Here's my code:
'----------------------------------------------------
sub cubeit (byVal x, x_byref)
cube = x^2
x = 20
x_byref = 20
end sub
dim val_var, ref_var, cube 'script level var
val_var = 3
ref_var = 3
call cubeit (val_var, ref_var)
Response.Write "<br>CUBE:" & cube
Response.Write "<br>INTVAR:" & val_var
Response.Write "<br>INTVAR:" & ref_var
'----------------------------------------------------
I have the result
CUBE:9
INTVAR:3
INTVAR:20
I would really appreciate if you can help me clear this up.
|
Anonymous |
|
Printed |
Page 142
near the top of page |
"y= CubeIt(x)
This assigns the value returned by the CubeIt function to the variable x."
This is incorrect as it actually assigns the value to variable y.
|
Anonymous |
|
Printed |
Page 172
Window#1 Box, 4th line "To reference Window#3,,,,". |
Old Line "To reference Window#3 use Window#2Name.Window#3Name or Frames(0).Frames(0)"
Correct last word(i.e. .Frames(0) to .Frames(1)
|
Anonymous |
|
Printed |
Page 184
|
The title for Example 5-11 now reads:
"Defining a Window_OnUnload Event Procedure"
Should read:
"Defining a Window_OnLoad Event Procedure"
|
Anonymous |
|
Printed |
Page 194
In Example 5-21 LOCATION.HTM, beginning with VBscript 4, access across |
frames is denied if the urls in the two frames are from different domains.
So example 5_21 doesn't work any more once you install ie5 (and ie4?).
ref: http://www.microsoft.com/TechNet/IE/reskit/ie4/appendixes/appendg.asp
|
Anonymous |
|
Printed |
Page 241
The Warning text is about radio buttons but the example refers to a |
|
Anonymous |
|
Printed |
Page 264
Downloading and Installation, Paragraph 1: The Microsoft ActiveX |
Control Pad is no longer found at www.microsoft.com/workshop/; it's now found
at http://www.msdn.microsoft.com/workshop/misc/cpad/default.asp#top.
|
Anonymous |
|
Printed |
Page 413
In the first line of first paragraph (below box), three files |
(FORMATCURRENCY.HTM, FORMATPERCENT.HTM AND FORMATNUMBER.HTM) are
mentioned as being on the CD are NOT in the Chapter 14 folder or
anywhere else on the CD.
My version of VBscript is 3.0, according to scriptengine.htm.
|
Anonymous |
|
Printed |
Page 457
Code |
Taking the code for Chapter 16 directly from the CD included with the book and
running on several different computers. When the user clicks on the "Add To
Order" button, a "run time" error results saying that the error is in Line 0
and that "Parent" is undefined.
|
Anonymous |
|