Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>indexkey()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INDEXKEY()


Syntax:     INDEXKEY(<expN>)

Purpose:    To determine the key expression of a specified index.

Argument:   <expN> is the ordinal position of the index in the list
            of index files opened by the last USE...INDEX or SET INDEX
            TO command for the current work area.  A zero value
            specifies the controlling index, without regard to its
            actual position in the list.

Returns:    A character string.

            INDEXKEY() returns the key expression of the specified
            index.  If there is no index for the position the function
            argument points to, INDEXKEY() returns a null string ("").

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

   USE Customers INDEX Name, Serial
   SET ORDER TO 2
   ? INDEXKEY(1)              && Result: Name index exp
   ? INDEXKEY(2)              && Result: Serial index exp
   ? INDEXKEY(0)              && Result: Serial index exp


See Also: SET INDEX SET ORDER USE INDEXEXT() INDEXORD()

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