Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loops
Message
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:
01211964
Views:
11
>>>>>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.
>
>I was under the impression that if you have an EXIT in there, then the alogorythm isn't really designed "properly".

You got wrong impression. There are real cases when you cannot fit all conditions into While expression. What are you going to do then? Continue to loop unnecessarily regardless that result already found?
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform