Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IF...ENDIF
Message
De
25/02/2000 20:11:48
 
 
À
25/02/2000 15:32:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00337800
Message ID:
00337964
Vues:
10
>Help!!
>I have 758 lines of code to look at with too many IF's. I am having a hard time trying to follow what each IF construct does. I tried beautify but that does not do the job. Is there any way, like an utility or something that would separate each IF construct?

Just a hint to avoid this sort of situation in the future:

758 lines of code is entirely too much for any single routine. I would start to conquer this beast by breaking it up into subroutines, so you have something like:
IF SomeCondition
	THIS.SomeRoutine()
ELSE
	THIS.SomeOtherRoutine()
ENDIF
instead of having all of the logic in one place. You'll find that you'll have a much easier time reading the code, as well as probably be able to eliminate some of it because you can call the same routine from several places.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform