Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
With / EndWith removal procedure
Message
 
 
To
24/03/2010 13:32:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01456907
Message ID:
01457001
Views:
70
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform