Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scan versus Scan While Not EOF()
Message
 
 
À
02/12/2000 18:15:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00448536
Message ID:
00448538
Vues:
9
>I've seen a number of posts here about adding a WHILE NOT EOF() condition to a SCAN..ENDSCAN loop. I get the impression that this seems to make the loop process more quickly.
>
>I've always thought the WHILE NOT EOF() was redundant.
>
>Could someone please explain to me how including it speeds up the processing?
>
>Thanks.............Rich

Adding the WHILE clause makes the SCAN/ENDSCAN not reset the record pointer to the first record. If you want to process from the middle of a table to the end, use WHILE.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform