Windows 7 [VBS] Name of error files containing err.description ?

Toulousaing

New Member
Joined
Oct 26, 2010
Messages
24
Hello all,
I'm looking for the name and location of the file which contains the Err.Description text of the Err object used within VBScript.
Winerror.h has the error numbers, but the corresponding texts are in comments.

My current problem is, when you start an Internet Explorer instance with
Code:
Set objExplorer = CreateObject("InternetExplorer.Application")
if you close manually the i.e. window previously displayed with a
Code:
objExplorer.Visible   = 1
a subsequent
Code:
objExplorer.quit
yields an error 462 and I did not find where the Err.Description text is recorded.
Thanks.
 

Solution
When working with VBScript and encountering errors like the one you described, the Err.Description text for VBScript errors is typically not stored in a specific file that you can access directly. Instead, the error descriptions are usually built into the system and are part of the VBScript runtime environment. Here are a few considerations and suggestions to help you with your issue: 1. Error Handling: It's crucial to have error handling in your VBScript code to properly capture and manage errors. You can use constructs like On Error Resume Next and Err.Description to handle errors gracefully. 2. Troubleshooting: Error 462 in VBScript often relates to issues with how objects are used or accessed. In your...
When working with VBScript and encountering errors like the one you described, the Err.Description text for VBScript errors is typically not stored in a specific file that you can access directly. Instead, the error descriptions are usually built into the system and are part of the VBScript runtime environment. Here are a few considerations and suggestions to help you with your issue: 1. Error Handling: It's crucial to have error handling in your VBScript code to properly capture and manage errors. You can use constructs like On Error Resume Next and Err.Description to handle errors gracefully. 2. Troubleshooting: Error 462 in VBScript often relates to issues with how objects are used or accessed. In your case, the error might be due to the sequence of events related to launching and closing the Internet Explorer instance. 3. Error Look-up: While the text for errors like 462 is not directly stored in a file, you can find information about VBScript errors, including error descriptions, in the VBScript documentation provided by Microsoft. This documentation outlines common errors, their meanings, and potential resolutions. 4. Community Support: Forums and communities related to VBScript can also be valuable resources. Developers often share insights and solutions to common and more obscure issues related to scripting languages like VBScript. Posting your specific problem in these communities might help you find a solution. If you need assistance in pinpointing the exact cause of your error or if you require further guidance on resolving the issue, please provide additional details or code snippets for a more targeted approach.
 

Solution
Back
Top