Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Re-try with TRY/CATCH
Message
From
16/12/2008 06:42:37
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01367724
Message ID:
01367778
Views:
13
This message has been marked as a message which has helped to the initial question of the thread.
>Good point about no error! I forgot about it. I guess I need to add some extra check in FINALLY clause for this too.
>
>I don't like EXIT in principle :)

I have heard this from other people, but I really don't understand why not. Exit is a valid command, which often can be very handy.

The same goes for programmers who insists that you shall never have more than one Return within a function. Personally I used to follow this rule, but I have changed my mind. I now often have some early returns, usually after parameter and environment checking, to return error values, and one late return with the real return value. I always avoid "intermediate returns".
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform