Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
With / EndWith removal procedure
Message
 
 
À
24/03/2010 13:32:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01456907
Message ID:
01457001
Vues:
71
>>>Maybe not relevant to your case, but you might find the C5s are being caused by exiting method from within a with/endwith construct.
>>>
>>
>>I think that's the reason Koen wants to change.
>
>But that is not a particularly good reason for changing everything you must to remove the WITH/ENDWITH. We redid our whole framework just making sure procedures had properly been followed that there was only one exit point from a method and that it came at the end, outside of blocks. Exit state controlled by variables. Much easier and IMO better coding technique.
>

I re-factored recently myself one complex procedure with multiple complex functions to ensure one exit point in every function. But there are too many procedures and I can not refactor each of them.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform