Search here for all the info you want in this Blog

Runtime Errors


 This is the most common type of error is the runtime error. A runtime error occurs when a command attempts to perform an action that is invalid.

In that the offending code looks syntactically fine to the script engine. Some kind of problem when it is executed. That is, the error does not necessarily appear while you are programming, but rather when you or one of your users is running the script.
It divided into three categories:
Native VBScript runtime errors.
 Non-VBScript runtime errors.
Variable declaration  runtime errors related to the Option Explicit directive.
 Result is same in 3 cases: an error occurs while the script is running. What differs the 3 types is:
What causes an error.
How an error could be prevented.
Native VBScript runtime errors:
This raises an error where  something that computers don’t like; dividing by zero
Non-VBScript runtime errors”:
                        Runtime errors will often come from other sources (scripting hosts, MS-ADO comp. any script can use err. raise method.
                        The method of dealing with non-VBScript  runtime errors is the same as Native VBScript runtime errors. Ideally the error msg itself will give you enough information to make the cause of the error. Ex:.For MS-ADO specified table is not existed.
           
 Variable declaration  runtime errors related to the Option Explicit directive
                        For VBScript Prgmer, it is difficult to detect errors that can result from misspellings of variable names and mistakes related to a variable’s scope.

No comments:

Post a Comment