Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loops
Message
De
03/04/2007 18:21:25
 
 
À
03/04/2007 17:29:04
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
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:
01211841
Vues:
10
Thank you professor. You are absolutley right, but I couldn't come up with a word other than 'pass' so I used it.

>>>>>>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.
>>
>>It can matter. For instance the code between a do while and enddo will not be calculated on the final pass because that pass does not occur.
>
>If it doesn't occur, it's not a pass. Then the final pass is the last one which did occur.
>
>In that sense, you can imagine the scan loop as a do while !eof() (plus other criteria) ... select myalias - skip - enddo.
I ain't skeert of nuttin eh?
Yikes! What was that?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform