Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index an views
Message
De
26/01/2006 22:42:41
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8
Divers
Thread ID:
01090801
Message ID:
01090802
Vues:
11
With the view cursor selected:
index on eExpression tag mytag
*--- where eExpression is the field or expression
*--- on which you want to index
...
...
seek(eExpression)
*--- where eExpression is the expression to be sought in the index.
*--- SEEK() is Rushmore-optimized so it will find your record VERY quickly.

*--- You can also use LOCATE FOR and SCAN...ENDSCAN whether the cursor is indexed or not.
*--- Unless it is a huge cursor you can often make do with a LOCATE, without an index.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform