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

Click here to load this message in the networking platform