Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handling advice for VB.Net
Message
 
To
25/11/2002 07:16:22
Andrew Fell-Gordon
Calypso Publications Ltd
Enfield, United Kingdom
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00726369
Message ID:
00726404
Views:
13
>[...] error handling strategies and this is one area where
> vb seems to differ markedly from Fox.
Keep in mind that VFP 8 now supports TRY/CATCH, so this difference might be reduced over time.

>Ideally, I would like to recreate this situation in VB but
> if I have understood what I have read (by no means
> guaranteed) I will have to have a Try,Catch,Finally
> construct or an OnError statement in each method.
Yes, I think you got it right. You'll need to surround with TRY/CATCH every piece of code that could trigger an error. This could mean one TRY/CATCH on each method, or multiple TRY/CATCHs per method, or none. When you don't use a TRY/CATCH in a method errors are bubbled up to the last TRY/CATCH in the call stack.

It is different from VFP 7 but I think you'll like the TRY/CATCH better in the long run.
Hector Correa
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform