Visual Basic® Scripting Edition
On Error Statement
|| Language Reference |
Enables an error-handling routine and specifies the location of the routine within a procedure; can also be used to disable an error-handling routine.
On Error Resume Next
On Error GoTo 0
If you don't use an On Error Resume Next statement, any run-time error that occurs is fatal; that is, an error message is displayed and execution stops.
On Error Resume Next causes execution to continue with the statement immediately following the statement that caused the run-time error, or with the statement immediately following the most recent call out of the procedure containing the On Error Resume Next statement. This allows execution to continue despite a run-time error. You can then build the error-handling routine inline within the procedure. An On Error Resume Next statement becomes inactive when another procedure is called, so you should execute an On Error Resume Next statement in each called routine if you want inline error handling within that routine.
On Error GoTo 0 turns the default error handling back on. See (http://www.microsoft.com/accessdev/articles/movs202.htm)
|file: /Techref/language/asp/vbs/vbscript/380.htm, 2KB, , updated: 2001/9/25 12:50, local time: 2021/10/20 09:50,
|©2021 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.massmind.org/techref/language/asp/vbs/vbscript/380.htm"> Microsoft® Visual Basic® Scripting Edition </A>
|Did you find what you needed?|
Welcome to massmind.org!
Welcome to www.massmind.org!