RDD

Found()

Determine whether the previous search succeeded

Syntax

Signature
Found() --> lSuccess

Arguments

None.

Return value

.T. when the previous locate or seek found a record.

Description

Found() reports the result of the previous search operation without moving the record pointer.

Notes

A new navigation operation can change the result.

Example

Found.prg
PROCEDURE Main()

   DbUseArea( .T., , "people.dbf", "People" )
   DbLocate( {|| FIELD->NAME == "Anna" } )
   QOut( "Found: " + IIF( Found(), "YES", "NO" ) )
   DbCloseArea()

RETURN

Output

See also