Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locate & Seek
Message
From
07/06/1999 13:55:44
 
 
To
07/06/1999 13:48:18
Jack Smack
Boyd, Dewey, Cheatum & How
Fresno, California, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00227120
Message ID:
00227123
Views:
26
LOCATE FOR will work on any field (given a performance penality if not indexed). It can be used in conjunction with CONTINUE to go from one match to another. You need to check Found() to know if a match was found. You can combine expression also.

Ex.:
LOCATE FOR State = "NY" AND Income > 50000
IF Found()
ENDIF

SEEK will work on indexed field only. It's a line line test if you use the function Seek() instead of the command SEEK.

Ex.:
IF Seek("Larin", "Client", "LastName")
ENDIF

The new IndexSeek() function works like Seek(), except that it doesn't move the pointer.

>I'm new to VFP.
>
>Could anyone tell me the diference between LOCATE FOR
>and SEEK?
Previous
Reply
Map
View

Click here to load this message in the networking platform