Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wishlist???
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00260725
Message ID:
00261331
Views:
36
>>Hi Jim,
>>
>>Funny you mention that this would bring VFP in-line with other languages. I* was swapping some private messages with Craig B. and mentioned that I'd like to see a post-test iteration structure and VFP not having one where other languages do. Might seem a bit silly since we can emulate one, but after reading your comments, maybe not so much so.
>
>I gotta ask, what is a post-test iteration structure?

Hi William,

No problem. There are three basic types of iteration (looping) structures: Fixed (FOR...ENDFOR); Pre-test (DO WHILE); and Post-Test DO...UNTIL. The difference between pre- and post-test is that pre-test will iterate (loop) zero or more times, post-test will iterate at least once. For example, DO WHILE NOT EOF() will not execute if the file is empty or you're already at EOF(). Basically, the difference is that a pre-test will evaluate the condition as the first line of the structure block, and post-test will evaluate it as the last line.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform