M
Mike W
I've been looking at some code and started wondering what is the point of
'Finally" in Try Catch Finally.
Why not just place the Finally code after the End Try? Will the Catch fire
if there is an error in Finally?
Try
Dosomething()
Catch ex as Exception
messagebox.show(ex.message)
Finally
CompleteProcess()
End Try
---------------------------------
Try
Dosomething()
Catch ex as exception
messagebox.show(ex.message)
End Try
CompleteProcess()
----------------------------------
What's the difference?
Thanks,
m
'Finally" in Try Catch Finally.
Why not just place the Finally code after the End Try? Will the Catch fire
if there is an error in Finally?
Try
Dosomething()
Catch ex as Exception
messagebox.show(ex.message)
Finally
CompleteProcess()
End Try
---------------------------------
Try
Dosomething()
Catch ex as exception
messagebox.show(ex.message)
End Try
CompleteProcess()
----------------------------------
What's the difference?
Thanks,
m