Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'SCAN FOR' vs 'LOCATE FOR'
Message
De
09/12/1999 21:10:29
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00301450
Message ID:
00301471
Vues:
28
SCAN FOR will go on finding all records that fits the FOR clause starting at the beginning of the table(the books says). While LOCATE will stop at the first one it finds. If you have an index, LOCATE should be faster but I never actually tried to evaluate the difference.

I know that, when I use SCAN, I feeel the difference in the speed of my programs. On small dataset, the difference would be minimal.
Diane Robitaille eng.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform