You??™ll have to look through the entire script for the unpaired beginning
statement. See the topics on flow control earlier in this chapter (???Creating
Interactive Scripts with Conditional Statements,??? ???Using Loops,
Using Loops, Using Loops,??? and ???Make Building Blocks with Subroutines
and Functions???) for more information on these commands.
Unterminated string constant
Compilation error: you left out a closing quotation mark, usually
required at the end of a ???string of text.???
Invalid procedure call or argument
Runtime error: this usually means that a subroutine or function has
been called with one or more improper parameters. This can occur, for
example, if you try to do something WSH isn??™t capable of, such as calculating
the square root of a negative number.
Type mismatch: ???[undefined]??™
Runtime error: this means you??™ve tried to use a command or function
that VBScript doesn??™t recognize. You??™ll get this error whenever you try
to use a VB command that doesn??™t exist in VBScript.
Object doesn??™t support this property or method
Runtime error: because it can be difficult to find documentation on the
various objects used in VBScript, you??™re likely to encounter this error
frequently. It means that you??™ve tried to refer to a property or method of
an object (such as WScript) that doesn??™t exist (such as WScript.Dingus).
The system cannot find the file specified
Runtime error: this error, obviously reporting that you??™ve tried to access
a file on your hard disk that doesn??™t exist, also appears when you try to
delete a Registry key that doesn??™t exist.
Pages:
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755