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?
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement