Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WITH ENDWITH question
Message
From
21/08/2003 13:19:01
 
 
To
21/08/2003 12:02:19
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00822119
Message ID:
00822265
Views:
24
Cetin, my only real objection to it is that having various returns sprinkled through a proc/loop/check etc can make things more difficult than they need to be for the next person who has to deal with my code.

Alan

>>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
>
>I don't like to strictly follow the general practices and on this subject I certainly do not follow :)
>I think it's up to the programmer to have a return in the middle of a proc/loop/check etc. If I can control it why wouldn't I do that. ie:
>
>
>* a method
>lparameters p1,p2,p3
>with this
> if !.Something(p1,p2,p3)
>    return .f.
> endif
>....
>
>Only impact IMHO is if you can't control your coding, IOW readability maybe.
>Cetin
Previous
Reply
Map
View

Click here to load this message in the networking platform