Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Comix 3.0 Reference Manual - <b>cmxseeklast()</b> seek to the last occurrence of a key http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
cmxSeekLast()         Seek to the last occurrence of a key
------------------------------------------------------------------------------

Synopsis

    cmxSeekLast(xValue [, lSoft] ) -> lFound

Arguments

    xValue is the value to seek for.

    lSoft is optional, and if .T. specifies that a SOFTSEEK should be done
    (i.e., find closest match, even if not exact).

Returns

    cmxSeekLast() returns whether or not a match was found.

Description

    cmxSeekLast() is like dbSeek(), except it finds the last occurrence of a
    key value (dbSeek() finds the first occurrence).

    This is substantially faster than SEEK'ing to the first occurrence, and
    then SKIP'ing WHILE to the end of the matching keys.

    cmxSeekLast() properly handles the DESCENDING flag of the index.

Example

    use demo
    index on last + dtos(lastcall) to lastTime

    cmxSeekLast("Jones")
    ? "Last talked with Jones on: ", lastCall

See Also

    SEEK


See Also: SEEK

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