Microsoft®
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 NextOn 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 11:50, local time: 2024/11/8 19:42,
3.145.40.251:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 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://ecomorder.com/techref/language/asp/vbs/vbscript/380.htm"> Microsoft® Visual Basic® Scripting Edition </A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.