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

Synopsis

    ordKey( [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

    ordKey() returns a character string which is the key expression of the
    specified index.

Description

    ordKey() returns the key expression condition of the index.  This is
    similar to the indexKey() function, but supersedes it because ordKey()
    can take either a numeric order or a tag name.

Example

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

See Also

    ordFor(), cmxUnique()


See Also: ordFor() cmxUnique()

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