Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loops
Message
From
03/04/2007 16:59:10
 
 
To
03/04/2007 16:45:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Loops
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01211796
Message ID:
01211820
Views:
14
I would say it depends. You may have multiple conditions you want to exit for...

>>>>>>Does a scan endscan loop exit at the bottom of the loop or at the top?
>>>>>
>>>>>It goes from top to bottom.
>>>>
>>>>Yes, that's right. But, a do while loop loops and at the end it exits the loop at the top. I believe that a for next loop runs and exits at the bottom.
>>>
>>>I don't see why it's important. One should not write code based on these assumptions. Either you exit loop specifically (by Exit) or you don't care.
>>
>>It can matter. For instance the code between a do while and enddo will not be calculated on the final pass because that pass does not occur. That can be useful from time to time.
>
>It's controlled by While expression, i.e. if this expression is False (for a record?) then code doesn't fire anymore.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform