Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loops
Message
From
04/04/2007 10:42:32
 
 
To
04/04/2007 08:42:24
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:
01212005
Views:
14
I ran into something in code recently that I never do personally. It just 'bugs' me. I've never done it and when I saw it, I stepped through the code to verify what actually happens:
SCAN
   IF .T.
      RETURN  && exits scan..endscan and returns to calling program
   ENDIF
ENDSCAN	
*--.T. case never hits here
>>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
.·*´¨)
.·`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
Next
Reply
Map
View

Click here to load this message in the networking platform