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>ordfor()</b> get the for condition for an index http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ordFor()              Get the FOR condition for an index
------------------------------------------------------------------------------

Synopsis

    ordFor( [nOrder] | [cTag [, cBag]] ) -> cFor

Arguments

    nOrder, cTag and cBag are optional parameters which specify the index.
    If omitted, the current master index will be used.

    nOrder is the numeric order of the index.

    cTag is the tag of the index, and cBag is the specific index file in
    which to find cTag.

Returns

    ordFor() returns a character string which is the FOR condition of the
    specified index.

Description

    ordFor() returns the FOR condition of the index.  This is similar to the
    indexKey() (or ordKey()) function which returns the key expression for
    the specified index.

Example

    use demo                && Assume no .CDX
    index on first to first
    index on last to last for age = 30 additive
    ? ordFor(1)             && Returns ""
    ? ordFor(2)             && Returns "age = 30"
    ? ordFor("last")        && Returns "age = 30"

See Also

    cmxUnique(), ordKey()


See Also: cmxUnique() ordKey()

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