VBScript in a Nutshell

VBScript in a Nutshell

Paperback(Second Edition)

View All Available Formats & Editions
Members save with free shipping everyday! 
See details


Lightweight yet powerful, VBScript from Microsoft® 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.

Product Details

ISBN-13: 9780596004880
Publisher: O'Reilly Media, Incorporated
Publication date: 03/28/2003
Series: In a Nutshell (O'Reilly) Series
Edition description: Second Edition
Pages: 514
Sales rank: 664,689
Product dimensions: 6.00(w) x 9.00(h) x 1.13(d)

About the Author

Paul Lomax, author of O'Reilly's VB & VBA in a Nutshell and a coauthor of VBScript in a Nutshell, is an experienced VB programmer with a passion for sharing his knowledge—and his collection of programming tips and techniques gathered from real-world experience.

Matt Childs is a vice president with Integrity Solutions Inc., one of Alaska's leading custom software development companies. Matt is responsible for overseeing all in-house development, and over the past year has worked with the State of Alaska and Alaska's two largest telecommunications companies. Matt has worked in the information technology field for nine years, and has been a VB programmer since Visual Basic 3. During most of his early career, Matt was an information technology manager for a large transportation company, where he developed custom software solutions and systems integration for the company's largest clients. Matt has industry experience with utilities; express transportation; and chemical, petroleum, and retail companies. In the winter, Matt spends his free time with his telescope, and during the long Alaska summer days, he enjoys playing softball and spending time with his family. Matt, his wife LeAndra and their daughter Meghan recently returned to Anchorage, Alaska, after spending some time in the southern United States. Matt is also a fiction writer and a freelance journalist.

Ron Petrusha is an editor for O'Reilly and is the author/coauthor of many books, including VBScript in a Nutshell. Ron has a background in quantitative labor history, specializing in Russian labor history, and holds degrees from the University of Michigan and Columbia University. He began working with computers in the mid 1970s, programming in SPSS (a programmable statistical package) and FORTRAN on the IBM 370 family. Since then, he has been a computer book buyer, an editor of a number of books on Windows and Unix, and a consultant on projects written in dBASE, Clipper, and Visual Basic.

Table of Contents

Why This Book?;
Who Should Read This Book?;
How This Book Should Be Used;
How This Book Is Structured;
Conventions in This Book;
How To Contact Us;
Part I: The Basics;
Chapter 1: Introduction;
1.1 VBScript's History and Uses;
1.2 What VBScript Is Used For: Gluing Together Objects;
1.3 Differences Between VBScript and VBA;
Chapter 2: Program Structure;
2.1 Functions and Procedures;
2.2 Classes;
2.3 Global Code;
2.4 Reusable Code Libraries;
Chapter 3: Data Types and Variables;
3.1 VBScript Data Types: The Many Faces of the Variant;
3.2 Variables and Constants;
Chapter 4: Error Handling and Debugging;
4.1 Debugging;
4.2 Error Handling;
4.3 Common Problem Areas and How to Avoid Them;
Chapter 5: VBScript with Active Server Pages;
5.1 How ASP Works;
5.2 Active Server Pages Object Model;
Chapter 6: Programming Outlook Forms;
6.1 Why Program Outlook Forms?;
6.2 The Form-Based Development Environment;
6.3 Running Your Code;
6.4 Program Flow;
6.5 The Outlook Object Model;
6.6 Accessing Other Object Models;
Chapter 7: Windows Script Host 5.6;
7.1 Why Use WSH?;
7.2 Running WSH Scripts;
7.3 Program Flow;
7.4 The WSH Object Model;
7.5 WSH Language Elements;
7.6 Accessing Other Object Models;
Chapter 8: VBScript with Internet Explorer;
8.1 The <SCRIPT> Tag;
8.2 What Can You Do with Client-Side Scripting?;
8.3 Understanding the IE Object Model;
Chapter 9: Windows Script Components;
9.1 The Script Component Wizard;
9.2 Writing Component Code;
9.3 Using the Component;
9.4 WSC Programming Topics;
Part II: Reference;
Chapter 10: The Language Reference;
Part III: Appendixes;
Appendix A: Language Elements by Category;
A.1 Array Handling;
A.2 Assignment;
A.3 Comment;
A.4 Constants;
A.5 Data Type Conversion;
A.6 Date and Time;
A.7 Dictionary Object;
A.8 Error Handling;
A.9 File System Objects;
A.10 Information Functions;
A.11 Mathematical and Numeric;
A.12 Miscellaneous;
A.13 Object Programming;
A.14 Program Structure and Flow;
A.15 String Manipulation;
A.16 User Interaction;
A.17 Variable Declaration;
Appendix B: VBScript Constants;
B.1 Color Constants;
B.2 Comparison Constants;
B.3 Date and Time Constants;
B.4 Date Format Constants;
B.5 Error Constant;
B.6 Logical and TriState Constants;
B.7 Message Box Constants;
B.8 String Constants;
B.9 Variable Type Constants;
Appendix C: Operators;
C.1 Arithmetic Operators;
C.2 String Operator;
C.3 Comparison Operators;
C.4 Logical and Bitwise Operators;
C.5 Operator Precedence;
Appendix D: Locale IDs;
Appendix E: The Script Encoder;
E.1 How Encoding and Decoding Works;
E.2 Script Encoder Syntax;
E.3 Encoding Examples;

Customer Reviews