This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Resume Statement
Resumes execution after an error-handling routine is finished.
Resume [0]
Resume Next
Resume line
Arguments
- Resume
- Required. If the error occurred in the same as the error handler, execution resumes with the statement that caused the error. If the error occurred in a called procedure, execution resumes at the that last called out of the procedure containing the error-handling routine.
- Resume Next
- Required. If the error occurred in the same procedure as the error handler, execution resumes with the statement immediately following the statement that caused the error. If the error occurred in a called procedure, execution resumes with the statement immediately following the statement that last called out of the procedure containing the error-handling routine (or On Error Resume Next statement).
- Resume line
- Required. Execution resumes at the line specified in the required line . The line argument is a or , and must be in the same procedure as the error handler.
Remarks
If you use a Resume statement anywhere except in an error-handling routine, an error will error occur.
The Resume statement cannot be used in any procedure that contains a Try…Catch…Finally statement.
See Also
Try...Catch...Finally Statement | Error Function | Error Statement | OnError Statement