A VBScript Book for Everyone
My name is Daniel Read. I am only one of several authors of this book. I would just like to say that I am proud to have been involved with this book and to be associated with the other fine and knowledgable authors, editors, and technical reviewers who worked on this book.
This book is awesome. If you are a total beginner, no worries. Chapter 1 will introduce you to the absolute basics of programming, with all of the examples written in VBScript. Chapters 2 through 4 will walk you through the basics of writing code with Microsoft's VBScript language. Chapters 5 and 6 get a little more advanced, but we're still covering the basics. However, even if you are already familiar with another language, you will be able to read the highlights of Chapters 2 through 6 to learn how variables, data types, control of flow, modularization, error handling, and object use are accomplished in the newest version of VBScript.
If you are already an accomplished VBScript developer, we did not forget about you. The remaining 600 pages of this 800 page book are dedicated to how to do the really cool stuff. We cover how to use VBScript in the context of the Windows Script Host (WSH), Active Server Pages (ASP), client-side web scripting, ActiveX Data Objects (ADO), Windows Script Components (WSCs), DHTML, and Remote Scripting. Plus we go into detail on how to create the new HTML Applications (HTAs), which are full-blown HTML/DHTML script-based applications that run in their own window--outside the browser, free of the browser's security restrictions. No more communicating with users exclusively though MsgBox() and InputBox(). We also go into detail on writing COM classes in VBScript--previously an activity that was limited to VB, C++, J++, and Delphi developers. It doesn't stop there. Chapter 16 will show you how to use the Microsoft Script Control to integrate scripting capability into your Visual Basic applications.
All of these chapters contain a mixture of expository material--which is especially useful when learning the subject matter for the first time--and reference material--which is invaluable on a day-to-day basis as you write VBScript code. We cover all of the major objects, and their interfaces, and it's all formatted for easy look-up when you need it. No more scouring the web for all that documentation. There are a ton of *real* code examples (not your typical help file code examples), and even sample scripts and VB projects which you can download for free from the Wrox site.
I have not even mentioned the 300 pages of appendices in this book. Appendix A alone is 80 pages, and covers the syntax of all of the VBScript functions, keywords, and operators. Appendix A is worth the price of this book all by itself. Every language element is covered in detail, including syntax (parameters, etc.), code examples, usage notes, cross references to other language elements, and even a list of any named constants that a given function supports.
For you Visual Basic programmers who are migrating to VBScript, Appendix A touches on Visual Basic language elements that are not supported or implemented differently in VBScript, and Appendix B lists all of the ommitted language features in an easy to consult table. Appendix D is tremendous as well. It contains a very useful list of Visual Basic named constants that VBScript also supports--color constants, comparison constants, date/time constants, etc. Appedices F through K contain object models, which are quick-look-up references for the object families you use with VBScript every day: the Scripting Runtime, WSH, IE, ASP, and ADO. Finally, we top all this off with an explanation of how to use the new Microsoft Script Encoder to "encode" (which is similar to encrypting) your scripts so they're not so easy to "borrow."
I did not intend for these comments to run on so long, but this book really is tremendous. The people who wrote and helped shape this book are people who use VBScript in their jobs and in their free time. This is not a regurgitation of the documentation. If you want to learn VBScript, then this book will get you there. If you already use VBScript at your job every day, then I predict that this book will seldom leave your desk.