Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

found() & seek()

Status
Not open for further replies.

monikai

Programmer
Aug 4, 2002
358
0
0
PL
Hi, Friends :),
What's difference of : SEEK() and FOUND()?

Regards from Monika (Warszawa - Poland)
(monikai@yahoo.com)
 
Hello monikai

SEEK() is the equivalent of issuing a SEEK command and then FOUND().


example.

SEEK something
if FOUND()
do something
endif

or

if seek(something)
do something
endif





 
The help is pretty clear:

FOUND( ) returns a logical value that indicates whether the most recently executed CONTINUE, FIND, INDEXSEEK( ), LOCATE, or SEEK was successful, or if the record pointer was moved in a related table. FOUND( ) returns true (.T.) if the search is successful; otherwise FOUND( ) returns false (.F.).
[\quote]

If a match is found, SEEK( ) returns true (.T.), and the record pointer moves to the matching record. If no match is found, SEEK( ) returns false (.F.) and the record pointer moves to the end of the file. Issuing SEEK( ) is equivalent to issuing SEEK and FOUND( ) in succession.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top