Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IF...ENDIF
Message
From
25/02/2000 20:11:48
 
 
To
25/02/2000 15:32:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00337800
Message ID:
00337964
Views:
11
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform