Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Advantage of Lookup() above Seek and Locate
Message
From
14/09/1998 15:48:24
 
 
To
14/09/1998 15:43:51
Koos Veel
Gamma Research
Aruba
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00136402
Message ID:
00136409
Views:
26
Hi Afier ---

My we are busy today, eh? :-)

Anyway, they are three different animals. Lookup() returns the value of a specific field based on a search criteria (yet moves the record pointer). I would guess that it operates similar to LOCATE internally (sometimes optimized depending on indexes). LOCATE is a general "find it" command that is useful when you cannot do a direct SEEK on a value. SEEK is the preferred *if* your searches are limited to index expressions.

So, in summary, there is no *best* --- each has nuances in why you would use it.

>
>We are using Visual FoxPro 5.0 and we are making a framework. If we want to locate a record we can use Lookup(), Seek and Locate. We would like to know if there is an advantage of using Lookup() above Seek or Locate. Thank you for your time.
>
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform