Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WITH ENDWITH question
Message
De
21/08/2003 10:40:52
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
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:
00822193
Vues:
16
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform