Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'SCAN FOR' vs 'LOCATE FOR'
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00301450
Message ID:
00301577
Vues:
22
>First off, I am not sure why we are even discussing Locate. Unless we are talking about a non-indexed field, it has NO value. Best to use Seek.

John,

Another place where LOCATE is of value is when the criteria is complex and there is no particular index that would allow a seek;

LOCATE FOR State = "PA" AND Amount >= 1000 AND Amount <= 10000

There may be indexes on State and Amount, but there is no way to SEEK that criteria.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform