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>set descending</b> dynamically make index descending/ascending http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SET DESCENDING       Dynamically make index descending/ascending
------------------------------------------------------------------------------

Synopsis

    SET DESCENDING ON
    SET DESCENDING OFF

Arguments

    None.

Description

    SET DESCENDING allows you to dynamically switch an index from ascending
    to descending order.  The current master index is affected.

    INDEX allows you to specify that an index should be set up in descending
    order using the DESCENDING clause (ascending is the default).  However,
    that mode is "static."

    SET DESCENDING removes the need to create separate ascending and
    descending indexes, since the same index can now be viewed either way.

    Please note that this changes ascending/descending at runtime only
    (i.e., it does not change the descending flag stored on disk for the
    index).

    Also, if you change the DESCENDING flag of an index, the scopes are
    automatically reversed for you (i.e., the top scope becomes the bottom
    scope and vice versa).

Example

    use demo                    && Brings all tags in demo.cdx into use
    set index to first          && Bring first into use

    list first                  && See it in ascending order

    set descending on           && See it in descending order
    list first

    set descending off          && Now see it again in ascending order
    list first

See Also

    INDEX, cmxDescend()


See Also: INDEX cmxDescend()

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