Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WITH ENDWITH question
Message
From
21/08/2003 10:40:52
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
21/08/2003 06:28:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00822119
Message ID:
00822193
Views:
17
>Hi
>
>if you are using with endwith should you never jump out of the middle.
>
>ie
>
>WITH
>
>return
>ENDWITH
>
>I can see it looks like a bad thing to do but whats the actual impact.
>
>Thanks
>
>Nick Mason

Pablo points out to the fact that your function is better organized if you have a single exit point. Your function may need setup / cleanup code, and it can become quite messy if you exit anywhere in the function.

Apart from that, I don't see a serious problem with the use of WITH you propose: I just consider it as a shortcut, for adding the specified object to the left of any expression that starts with a point. (It is also recommended for performance.)
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform