Errata

VBScript in a Nutshell

Errata for VBScript in a Nutshell

Submit your own errata for this product.

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.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
InStr, InStrB Functions
In vbscript instr() function, it is mentioned that if start is greater than the length of stringtofind then the return value will be zero. But it doesn't return zero when executed.

In vbscript instr() function, it is mentioned that if start is
greater than the length of stringtofind then the return value will be
zero. But it doesn't return zero when executed.

Tye Lokka  Nov 02, 2020 
Printed Page 83
top of page, under Example 4-7

<FORM> should be </FORM>

Anonymous   
Printed Page 85
Paragraph beginning "Although..."

Description here of handling of Err object properties directly contradicts description given in last paragraph of page 253.

Probably a cut/paste type error from related VB/VBA book.

Kenneth Johnson  May 06, 2015 
Printed Page 132
first paragraph under Description of StdOut

The text says, "For example, the output is redirected to the first parallel printer:"

The example is, "CScript.exe ShowGreeting.vbs > Greeting.txt"

The example command line will send output to the file Greeting.txt, not to a printer. To send it to the printer, the command line should be one of the following:

CScript.exe ShowGreeting.vbs > LPT1
CScript.exe ShowGreeting.vbs > PRN

Anonymous   
Printed Page 350
Match Object

The 2nd edition claims to cover VBScript 5.6. However, it fails to document the Match object's SubMatches collection that was introduced in VBScript 5.5. See http://msdn2.microsoft.com/en-us/library/y27d2s18.aspx for details.

I already owned the first edition and found it very useful. I bought the second edition only because it would contain the documentation for the improved regular expression object. Needless to say I was quite disappointed.

Anonymous   
Printed Page 466
example E-3

CONST Fixed = 2 :was left out of example E-3.

Anonymous