Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.2 . Technical Reference - <b>dbsortitem</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DBSORTITEM
 Array of items indicating the key values, in order, to use when sorting data
------------------------------------------------------------------------------
 Structure

     typedef struct
     {
        USHORT field;
        USHORT flags;
     } DBSORTITEM;
     
     typedef DBSORTITEM far * DBSORTITEMP;

 Elements

     field

        Contains a numeric value; an index into the WORKAREA->fields
        structure indicating the field on which the sort is based.

     flags

        Contains literal constants that function as sort optimization and
        control flags.  They are passed to your RDD sort() routine from the
        high-level wrapper function for the CA-Clipper SORT command.  The
        flag values are defined in Rdd.api and have the following meanings:

        DBSORTITEM Sort Flag Values
        ---------------------------------------------------------------------
        Constant     Meaning
        ---------------------------------------------------------------------
        SF_ASCEND    An ascending sort
        SF_CASE      A case-insensitive sort
        SF_DESCEND   A descending sort
        SF_NUM       The sort is on numeric data only
        SF_DOUBLE    The sort is to be done exclusively with floating point
                     numbers
        SF_LONG      The sort is to be done exclusively with integers
        ---------------------------------------------------------------------

 Files:  Header file is Rdd.api.

 Used by:   DBSORTINFO


See Also: DBSORTINFO

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