Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LOCATE x GO TOP
Message
 
To
01/11/2005 16:03:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 7 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01064195
Message ID:
01064465
Views:
31
This message has been marked as a message which has helped to the initial question of the thread.
>in VFP's Help We can find :
>"If you use the LOCATE command without the FOR expression, Visual FoxPro
>positions the record pointer at the first logical record. This is faster
>than using GO TOP when a filter is in use or when DELETED is ON."

>
>For my curiosity, I wanted to know how much faster LOCATE is, but I got the opposite !
>Is the information provided by MS wrong , or did I make the test incorectly ???

Locate and filters set with gotop are slow. SEEK is fast. I usually loop through the scope after a seek. But you might be able to seek first and then scope it with set filter.
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform