what is the point of 'Finally'
- From: "Mike W" <thewittmer@xxxxxxxxx>
- Date: Fri, 23 Dec 2005 16:15:49 GMT
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
.
- Follow-Ups:
- Re: what is the point of 'Finally'
- From: Herfried K. Wagner [MVP]
- Re: what is the point of 'Finally'
- From: Marina
- Re: what is the point of 'Finally'
- Prev by Date: How do I programatically add a row and update the database?
- Next by Date: Re: need help with serial port control
- Previous by thread: How do I programatically add a row and update the database?
- Next by thread: Re: what is the point of 'Finally'
- Index(es):
Relevant Pages
|