Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scan versus Scan While Not EOF()
Message
De
02/12/2000 19:34:47
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00448536
Message ID:
00448546
Vues:
16
>>>>>>>>>>>>>
Adding the WHILE clause makes the SCAN/ENDSCAN not reset the record pointer to the first record.
>>>>>>>>>>>>>

Doesn't SCAN FOR also start at whatever record as SCAN WHILE do?

As opposed to SCAN that starts at the top record (with whatever controlling index tag you may have in effect).


>>>>>>>>>>>>>
If you want to process from the middle of a table to the end, use WHILE.
>>>>>>>>>>>>>
Clarification here: 'to the end' in the case of the poster that used WHILE !EOF()
Actually it is until WHILE condition stops being true.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform