Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loops
Message
De
04/04/2007 10:42:32
 
 
À
04/04/2007 08:42:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Loops
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01211796
Message ID:
01212005
Vues:
15
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"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform