Difference between revisions of "FOUND()"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) (→Description) |
||
Line 9: | Line 9: | ||
==Description== | ==Description== | ||
− | The FOUND() function returns .T. if a | + | The FOUND() function returns .T. if a SEEK or LOCATE operation was successful. The FOUND() function returns .F. if the operation fails. If the optional <workarea/alias> is specified, then the function will operate in the required workarea. The FOUND() function should be used with the SEEK command for testing the success or failure of the operation. |
==Example== | ==Example== |
Revision as of 05:58, 10 February 2012
Contents
Purpose
Function to return whether a record was found
Syntax
FOUND([<workarea | alias>])
See Also
BOF(), EOF(), LOCATE, LOOKUP(), RLOOKUP(), SEEK, SEEK()
Description
The FOUND() function returns .T. if a SEEK or LOCATE operation was successful. The FOUND() function returns .F. if the operation fails. If the optional <workarea/alias> is specified, then the function will operate in the required workarea. The FOUND() function should be used with the SEEK command for testing the success or failure of the operation.
Example
use accounts set index to acc_no seek "00751" if found() change noclear else dialog box "Customer not found." endif