Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WITH ENDWITH question
Message
From
21/08/2003 12:02:19
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
21/08/2003 06:28:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00822119
Message ID:
00822242
Views:
21
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform