If the calling procedure's error handler is also active, control passes back through previous calling procedures until an enabled, but inactive, error handler is found. If the calling procedure has an enabled error handler, it is activated to handle the error. Control returns to the calling procedure. If an error occurs while an error handler is active (between the occurrence of the error and a Resume, Exit Sub, Exit Function, or Exit Property statement), the current procedure's error handler cannot handle the error. An "active" error handler is an enabled handler that is in the process of handling an error. For more information, see Statement.Īn "enabled" error handler is one that is turned on by an On Error statement. We recommend that you use structured exception handling in your code whenever possible, rather than using unstructured exception handling and the On Error statement.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |