Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WITH ENDWITH question
Message
De
21/08/2003 12:02:19
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
21/08/2003 06:28:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00822119
Message ID:
00822242
Vues:
22
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform