J
jy836
When using the Try...Catch...Finally statements, what happens if an error
occurs in a procedure called by the main procedure? For instance...
Private Sub DoSomething()
Try
Call DoSomethingElse()
Catch
MsgBox("An error occured.")
Finally
MsgBox("This code always executes.")
End Try
End Sub
If an error occurs in the DoSomethingElse procedure, will the error be
caught in the Try...Catch...Finally exception handler?
occurs in a procedure called by the main procedure? For instance...
Private Sub DoSomething()
Try
Call DoSomethingElse()
Catch
MsgBox("An error occured.")
Finally
MsgBox("This code always executes.")
End Try
End Sub
If an error occurs in the DoSomethingElse procedure, will the error be
caught in the Try...Catch...Finally exception handler?