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>indexord()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INDEXORD()


Syntax:     INDEXORD()

Purpose:    To determine the position of the controlling index in the
            list of index files opened by the last USE...INDEX or SET
            INDEX TO in the current work area.

Returns:    An integer numeric value.

            INDEXORD() returns the position of the controlling index in
            the list of open index files.  A value of zero indicates
            there is no controlling index and you are accessing the
            current database file in natural order.

Usage:      INDEXORD() is useful to record the last controlling index
            allowing you to restore that order sometime later.

Library:    CLIPPER.LIB


----------------------------------- Example --------------------------------

   USE Customers INDEX Name, Serial
   last_ord = INDEXORD()                  && Result: 1
   SET ORDER TO 2
   ? INDEXORD()                           && Result: 2
   SET ORDER TO last_ord
   ? INDEXORD()                           && Result: 1


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

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