>>>>< BG >I guess so. On the serious side, when we call a function that returns a Boolean value it's usually in the
hope that it'll succeed.
>>>>
>>>
>>>Would you say that has alot to do with your rule #3 - No premature exits?
>>
>>No, #3 is more geared to using the right iteration structure for the job. As I'm sure everyone knows, there are three: Pre-test, Post-test, and Fixed. Unfortunately, VFP doesn't have a native Post-test, we have to simulated it forcing a DO WHILE to iterate one time.
>>
>
>Being new to VFP, return and loop are also new. AutoLisp doesn't have anything like that. The only way out of an indeterminant loop is to cause the test to fail.
>
>So by default I always think, While-SomeTruth-Continue, or If-SomeTruth-Continue.
I think we're on the same page here. Simply put, if a fixed number of iterations are required, then FOR...ENDFOR (actually I use NEXT, a hangover from my BASIC days). Otherwise, DO WHILE.
George
Ubi caritas et amor, deus ibi est