Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help With scan...endscan (for / while)
Message
De
09/08/1999 12:53:39
 
 
À
09/08/1999 11:26:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00251485
Message ID:
00251585
Vues:
8
It also reSELECTs the original alias before the SKIP.

Vlad

>All SCAN...ENDSCAN really does is a DO WHILE loop with an implicit SKIP on each iteration. FOR allows you to specify a filter condition with an implied scope of ALL that examines all records meeting the criteria of the FOR clause; WHILE allows you to specify a filter with an implied scope of REST that terminates as soon as a record that does not meet the criteria of the WHILE condition is encountered.
>
>If you can't figure it out from the VFP docs, which detail this quite explicitly, buy a copy of Hacker's Guide To Visual Foxpro 6.0, which provides extensive documentation not included in the MS-supplied VFP on-line documentation. I'd suggest a more general text on programming in VFP as a starting point, since the operation of scoping on commands sin't specific to the SCAN...ENDSCAN command; any command that supports FOR and WHILE clauses has the same scoping issues.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform