Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The features you miss the most
Message
De
07/06/2004 02:22:08
 
 
À
07/06/2004 01:57:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Divers
Thread ID:
00910611
Message ID:
00910640
Vues:
22
>>Oh, and I forgot that one feature I waited for in each version since FoxBase: a DO WHILE loop with a condition evaluated at the end of the loop. Like this:
>>DO
>> some commands
>>WHILE i < 10
>>
>>or
>>REPEAT
>> some commands
>>UNTIL i >= 10
>>
>>I believe every single language on the earth but Foxpro has this type of loops. We have DO WHILE (cond) ENDDO, FOR...ENDFOR, FOR EACH...ENDFOR, SCAN...ENDSCAN but no DO ... WHILE (cond)
>>
>>Ah... maybe in VFP version 10 :)
>
>Whats the difference if the condition is evaluated at the start or end? It will run the loop the same? Wouldn't it? Please point out the flaws in my logic if I am completely incorrect. But to my knowledge and experience most other languages seem to evaluate the conditions at the top of the loop.
>
>Chris.

Chris, the difference is that this type of loop ensures that the commands within the loop are executed at least once. Lots of ways around it and I suspect thats the reason why it isnt high on the list of enhancements for the VFPT. But many other languages do have this variation.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform