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>seek</b> seek to first (or last) occurrence of a key http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SEEK                 Seek to first (or last) occurrence of a key
------------------------------------------------------------------------------

Synopsis

    SEEK <xValue> [SOFTSEEK] [LAST]

Arguments

    <xValue> is the value to seek for.

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

    LAST is optional, and if specified indicates that the last occurrence
    of the key value should be found (rather than the first).

Description

    This is the SEEK command with the enhancement of the LAST clause.

    If LAST is specified, the last matching value is found (rather than the
    first).

    SEEK .. LAST properly handles the DESCENDING flag of the index.  In
    other words, if an index is in DESCENDING order, a SEEK .. LAST is
    equivalent to a "normal" SEEK with DESCENDING OFF.

Example

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

    seek "Jones" last
    ? "Last talked with Jones on: ", lastCall

See Also

    cmxSeekLast()


See Also: cmxSeekLast()

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