Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The features you miss the most
Message
From
07/06/2004 02:22:08
 
 
To
07/06/2004 01:57:45
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00910611
Message ID:
00910640
Views:
23
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform