Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>found()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FOUND()


Syntax:     FOUND()

Purpose:    To determine if the previous search operation using FIND,
            LOCATE/CONTINUE, or SEEK succeeded.

Returns:    A logical value.

            FOUND() returns true (.T.) if the last search command was
            successful.

            Each work area has a FOUND() flag.  This means that if one
            work area has a RELATION SET to a child work area, querying
            FOUND() in the child returns true (.T.) if there is a match.

            All record movement commands other than search commands
            reset FOUND() to false (.F.).

            If SOFTSEEK is ON, FOUND() returns false (.F.) when there is
            not a match for a SEEK or FIND.

Usage:      FOUND() is useful for determining whether a search of a
            database file is successful before performing the next step
            in a program.

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

   USE Sales INDEX Sales
   ? INDEXKEY(0)                    && Result: SALESMAN
   SEEK "1000"
   ? FOUND()                        && Result: .F.
   SEEK "100"
   ? FOUND()                        && Result: .T.
   SKIP
   ? FOUND()                        && Result: .F.


See Also: FIND LOCATE SEEK SET RELATION EOF()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson