Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loops
Message
From
04/04/2007 11:58:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
04/04/2007 11:51:58
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:
01212052
Views:
13
>>>>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
>>
>>Or the regular way
>>
llCondition=.t.
>>do while llCondition
>>   ---stuff---
>>   llCondition= --- expression ---
>>enddo
>
>Not quite the same thing. Your way exits at the top of the loop, not the bottom. I realise that the result is really the same, but the aesthetics are not.

First, we've already established that VFP "exits at the top" - although the difference is only syntactical.

Second, I agree with the aesthetics part. Mine surely looks nicer :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform