Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loops
Message
From
04/04/2007 10:46:14
 
 
To
04/04/2007 10:04:50
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:
01212010
Views:
15
>>>I believe that Basic (and perhaps others) have a WHILE - WEND where the code is always evaluated at least once and the loop control is at the bottom.
>>
>>Pascal has a REPEAT-UNTIL construct that works that way:
>>
>>REPEAT
>> * do something
>>UNTIL condition
>>
>>Tamar
>
>I like the UNTIL idea. Is there a way to do that in VFP9? Should the Sedna people consider it?

You'd have to simulate it. Something maybe like:
DO WHILE .T.
  [do some stuff here]
  [do some more stuff maybe]

  * last thing before the ENDDO
  IF (check condition)
    EXIT
  ENDIF
ENDDO
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform