Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coding Standards
Message
 
À
10/07/1998 10:25:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00115272
Message ID:
00116131
Vues:
29
>Hi George --
>>
>>You've pretty much touched on my point. FOR...ENDFOR for a fixed number of iterations. DO WHILE if it's conditional. (I still want a true post-test iteration structure.)
>
>
>Maybe I just ramble too much, huh <g>?
>
>Also, DO WHILE has no intrinsic logic to change states and FOR..ENDFOR does which means that FOR..ENDFOR will always be more compact (and maybe faster?) than DO..ENDDO where iterations are known or can be determined, right?

I think (key word there) you're right. My point, however, was simply that comparing a FOR...ENDFOR against a DO WHILE to do the same number of iterations is (in my view) an unfair, and perhaps inaccurate, comparison. They're usually used for different purposes. When another logical condition must be evaluated to prematurely exit a FOR, the evaluation of that condition should be taken into account.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform