For the most part, Example 9-2, which shows the completed script block for our MathLib component, contains straightforward VBScript code. Only handling the DivByZero event, which will be discussed in Section 9.4.1 later in this chapter, requires comment.
Example 9-2. Script block for the MathLib component
Part I: The Basics
Introduction
Program Structure
Data Types and Variables
Error Handling and Debugging
VBScript with Active Server Pages
Programming Outlook Forms
Windows Script Host 5.6
VBScript with Internet Explorer
Windows Script Components
Part II: Reference
Part III: Appendixes
Appendix A. Language Elements by Category
Appendix B. VBScript Constants
Appendix C. Operators
Appendix E. The Script Encoder