Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
With / EndWith removal procedure
Message
De
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:
01457000
Vues:
64
>>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.

>
>>>Because I / we find it more accurate to change our coding from With / Endwith construction to oObject. Advantage: no more possible C00005 (return within a With / EndWith and better readable source. It seems that the time gain if at all with With/ Endwith is neglectable. However it is tendious job to go through all the coding to remove and reconstruct. Basicly it should not be so difficult, there are however e few pitfall. So in order not to reinvcent the wheel my question.
>>>
>>>Regards,
>>>
>>>Koen


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform