Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index an views
Message
From
26/01/2006 22:42:41
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
 
 
To
26/01/2006 22:20:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8
Miscellaneous
Thread ID:
01090801
Message ID:
01090802
Views:
10
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
Previous
Reply
Map
View

Click here to load this message in the networking platform