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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only