[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
+---------------------------------+
|             SEEK()              |
+---------------------------------+
SEEK(<expr> [, <expN> | <expC>])

-----------------------------------
Returns true if SEEK was successful.
Return value - Logical
-----------------------------------

SEEK() searches an indexed database for the first occurrence of a record
whose index key expression matches the specified expression.  If a match
is found true  (.T.) is returned and the record pointer is moved to the
matching record.  If no match is found false (.F.) is returned and the
record pointer is positioned at the end of the file.

. SEEK() replaces a combination of SEEK and FOUND().  The database you
are searching must be indexed.

<expr>
        The index key expression to search for is specified by the general
expression <expr>.

<expN> | <expC>
        If you don't specify a work area or alias, SEEK() searches for a
matching record in the database file in the currently selected work
area.

        To search for a matching record in a database open in another work
area, include the work area number <expN>, or the database alias <expC>.

-----------------------------------

See Also:  EOF(), FIND, FOUND(), LOCATE, SEEK

-----------------------------------

See Also: EOF() FIND FOUND() LOCATE SEEK
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson