|
VBScript in a Nutshell 2nd Edition
Lightweight yet powerful, VBScript from Microsoft(R) is
used in four main areas: server-side web applications using
Active Server Pages (ASP), client-side web scripts using
Internet Explorer, code behind Outlook forms, and automating
repetitive tasks using Windows Script Host (WSH). VBScript
in a Nutshell, Second Edition delivers
current and complete
documentation for programmers and system administrators who
want to develop effective scripts.
Completely updated for VBScript 5.6, WSH 5.6 and ASP 3.0,
VBScript In a Nutshell, Second Edition includes updated
introductory chapters that will help you keep current with
the significant changes since the first edition was
published. New chapters introduce the Windows Script
Component for creating binary COM components, and the Script
Encoder.
The main part of the book is a comprehensive reference
focusing on VBScript essentials with an alphabetical
reference to all statements, keywords and objects, and a
section of notes and solutions to real-world
gotchas--various undocumented behaviors and aspects of the
language--to help you avoid potential problems. Each entry
in the reference section details the following:
The keyword's syntax, using standard code conventions
A list of arguments accepted by the function or procedure,
if any exist
A discussion of how and where the keyword should be used
within the scripting environment
A discussion of the differences between the operation of the
keyword in Visual Basic or VBA and in VBScript
Regardless of your level of experience programming with
VBScript, VBScript in a Nutshell, Second Edition is the book
you'll want by your side--the most complete, up-to-date, and
easy-to-use language reference available.
Foreword
Preface
I. The Basics
1. Introduction
VBScript's History and Uses
What VBScript Is Used For: Gluing Together Objects
Differences Between VBScript and VBA
2. Program Structure
Functions and Procedures
Classes
Global Code
Reusable Code Libraries
3. Data Types and Variables
VBScript Data Types: The Many Faces of the Variant
Variables and Constants
4. Error Handling and Debugging
Debugging
Error Handling
Common Problem Areas and How to Avoid Them
5. VBScript with Active Server Pages
How ASP Works
Active Server Pages Object Model
6. Programming Outlook Forms
Why Program Outlook Forms?
The Form-Based Development Environment
Running Your Code
Program Flow
The Outlook Object Model
Accessing Other Object Models
7. Windows Script Host 5.6
Why Use WSH?
Running WSH Scripts
Program Flow
The WSH Object Model
WSH Language Elements
Accessing Other Object Models
8. VBScript with Internet Explorer
The <SCRIPT> Tag
What Can You Do with Client-Side Scripting?
Understanding the IE Object Model
9. Windows Script Components
The Script Component Wizard
Writing Component Code
Using the Component
WSC Programming Topics
II. Reference
10. The Language Reference
III. Appendixes
A. Language Elements by Category
B. VBScript Constants
C. Operators
D. Locale IDs
E. The Script Encoder
Index
|