`Second Edition
`
`Adrian Kingsley-Hughes
`Kathie Kingsley-Hughes
`Daniel Read
`
`WILEY
`
`Wiley Publishing, Inc.
`
`IPR2022-00976
`Fintiv Ex. 2012 | Page 1 of 3
`
`IPR2022-00976
`Fintiv Ex. 2012 | Page 1 of 3
`
`
`
`
`
`VBScript Programmer's Reference, Second Edition
`Published by
`Wiley Publishing,Inc.
`10475 Crosspoint Boulevard
`Indianapolis, IN 46256
`www.wiley.com
`Copyright © 2004 by John Wiley & Sons. All rights reserved.
`Published simultaneously in Canada
`Nopartof this publication may be reproduced,stored in a retrieval system, or transmitted in any form
`or by any means,electronic, mechanical, photocopying, recording, scanning, or otherwise, except as
`permitted under Section 107 or 108 of the 1976 United States Copyright Act, withouteither the prior
`written permission of the Publisher, or authorization through paymentof the appropriate per-copy fee
`to the Copyright Clearance Center, Inc., 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400,
`fax (978) 646-8700. Requests to the Publisher for permission should be addressed to the Legal
`Department, Wiley Publishing, Inc., 10475 CrosspointBlvd., Indianapolis, IN 46256, (317) 572-3447,
`fax (317) 572-4447, E-mail:permcoordinator@wiley.com.
`LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REPRESENTATIONS
`OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS WORK AND
`SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A
`PARTICULAR PURPOSE. NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES OR PROMOTIONAL MATERIALS.
`THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOTBE SUITABLE FOR EVERY SITUATION. THIS WORKIS
`SOLD WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING,
`OR OTHER PROFESSIONALSERVICES. IF PROFESSIONAL ASSISTANCEIS REQUIRED, THE SERVICES OF A COMPETENT
`PROFESSIONAL PERSON SHOULD BE SOUGHT. NEITHER THE PUBLISHER NOT THE AUTHOR SHALLBE LIABLE FOR
`DAMAGESARISING HEREFROM.THE FACT THAT AN ORGANIZATIONOR WEBSITEIS REFERRED TO IN THIS WORK AS A
`CITATION AND/OR A POTENTIAL SOURCE OF FURTHER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE
`PUBLISHER ENDORSES THE INFORMATION THE ORGANIZATIONORWEBSITE MAY PROVIDE OR RECOMMENDATIONS
`IT MAY MAKE. FURTHER, READERS SHOULD BE AWARE THAT INTERNETWEBSITES LISTED IN THIS WORK MAY HAVE
`
`CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND WHENITIS READ.
`
`For general information on our other products and services please contact our Customer Care
`Departmentwithin the United States at (800) 762-2974, outside the United States at (317)
`572-3993 orfax (317) 572-4002.
`Trademarks: Wiley, the Wiley Publishing logo, Wrox, the Wrox logo, and Programmerto Programmer
`are trademarksorregistered trademarks of John Wiley & Sons,Inc. and/orits affiliates. All other
`trademarksare the property of their respective owners. Wiley Publishing, Inc., is not associated with
`any product or vendor mentionedin this book.
`Wiley also publishes its books in a variety ofelectronicformats. Some content that appears in print may not be
`available in electronic books.
`
`Library of Congress Card Number:
`eISBN:0-7645-7880-4
`Printed in the United States of America
`109 8 7 654321
`
`Library ofCongress Cataloging-in-Publication Data
`Kingsley-Hughes, Adrian.
`VBScript programmer’s reference / Adrian Kingsley-Hughes, Kathie
`Kingsley-Hughes, Daniel Read.—2nd ed.
`.
`cm.
`Includes index.
`eISBN 0-7645-7880- 4
`2. HTML (Document markuplanguage).
`1. VBScript (Computer program language).
`
`1. Kingsley-Hughes, Kathie.3. World Wide Web. II. Read, Daniel, 1969-_III.Title
`
`QA76.73.V27K56
`2004
`005.2'762—de22
`2004007671
`
`IPR2022-00976
`Fintiv Ex. 2012 | Page 2 of 3
`
`IPR2022-00976
`Fintiv Ex. 2012 | Page 2 of 3
`
`
`
`Chapter 6
`
`off, a small yellow triangle with an exclamation point (!) will appearin the status bar at the bottom of the
`browser window.
`
`This will be the user’s only indication that an error has occurred, and the actual error message will only
`comeupif the user happensto notice the yellow icon and clicks on it. However,it is important to
`considerthe likely possibility that users of your Web pagewill not care whattheerroris. There is nothing
`that they can doaboutit anyway. All they knowisthat the page is not working. This situation underlines
`the importance of thoroughlytesting all of your browser-based VBScript code.
`
`Handling Errors
`Whatexactly does “error handling” mean? In the purest definition, error handling meanstake anactive,
`rather than passive, approach to respondingto errors. This means having extra code built into your script
`to deal with errors in case they occur. This can take the form of a “global” error handling schemethat
`does something such as:
`
`QO
`Q
`Q
`Q
`
`displaying theerror to a user
`loggingthe errortoa file, database, or the Windows Event Log
`e-mailing the error to a system administrator
`paging the system administrator
`some combinationofall of the these
`
`In addition to a general error handling scheme, you can trap for specific errors at specific points. For
`example, trying to connectto a database is a common point where errors occur. The password entered by
`the user might be wrong, or the database might have reached the maximum allowable connections.
`Knowing that connecting to a database is error prone, the experienced VBScript programmerwill put a
`specific error trap in his or her codein the place where the code attempts a database connection.
`
`The remainderof this section will introduce the elements necessary for handling errors in your VBScript
`programs.
`
`The Err Object
`The Err objectis whatis described in the Microsoft VBScript documentation as an “intrinsic object with
`global scope,” which meansthatit is always available to any VBScript code. There is no need to declare a
`variable to hold an Err object and no needto instantiate it using CreateObject or New. Thereis exactly
`one Err object in memory atall times while a VBScript program is running.
`
`The Err object contains information aboutthe last error that occurred.If no error has occurred, the Err
`object will still be available, but it will not contain any error information. Error informationis stored in
`the properties of the Err object; some of which are given in the table.
`
`The properties and methodsof the Err object are described in more detail in Appendix E.
`
`The Err object also has two methods. Thefirst is the Clear method, whicherasesall of the properties of
`the Err object so that the information aboutthelast error is thrown away. The secondis the Raise
`
`134
`
`IPR2022-00976
`Fintiv Ex. 2012 | Page 3 of 3
`
`IPR2022-00976
`Fintiv Ex. 2012 | Page 3 of 3
`
`