Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Speeding up search - Locate For or Seek?
Message
From
26/07/2000 19:23:15
 
 
To
26/07/2000 14:42:46
Erin Eby
Mission Critical Software
Gainesville, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00397065
Message ID:
00397373
Views:
28
>well had i realized that my small question would have caused such a controversy i would have thought twice. haha.

LOL Erin :)

I think everyone had quite forgot you.
The reason you are getting similar results is because VFP is optimizing your LOCATE. It noticed you had an index available on that field and decided to use it without asking you.

If you SET OPTIMIZE OFF it will not be so helpful and you should see a big difference. Of course it could just be that the value you are LOCATEing for is near the top of your table, try a value at the bottom.

In general make sure SET OPTIMIZE is always on.

You might also like to play around with the LOOKUP command.

Whilst this command is not optimizable it is great for looking up data in small tables that don't have an index.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform