C5_SET DESCENDING

SET DESCENDING
 Change the descending flag of the controlling order
------------------------------------------------------------------------------
 Syntax

     SET DESCENDING ON | OFF | (<lToggle>)

 Arguments

     ON enables the descending flag.

     OFF disables the descending flag.

     <lToggle> is a logical expression that must be enclosed in
     parentheses.  A value of true (.T.) is the same as ON, and a value of
     false (.F.) is the same as OFF.

     Note:  The initial default of this setting depends on whether the
     controlling order was created with DESCENDING as an attribute.

 Description

     SET DESCENDING is functionally equivalent to ORDDESCEND().  Refer to
     this function for more information.

 Examples

     .  The following example illustrates SET DESCENDING.  every order
        can be both ascending and descending:

        USE Customer VIA "DBFCDX"
        INDEX ON LastName TAG Last
        INDEX ON FirstName TAG First DESCENDING

        SET ORDER TO TAG Last
        // last was originally created in ascending order

        // Swap it to descending
        SET DESCENDING ON
        // Last will now be processed in descending order

        SET ORDER TO TAG First
        // First was originally created in descending order

        // Swap it to ascending
        SET DESCENDING OFF
        // First will now be processed in ascending order

 Files   Library is CLIPPER.LIB.

See Also: ORDDESCEND()



Advertisements

2 responses to “C5_SET DESCENDING

  1. Pingback: C5 Commands | Viva Clipper !

  2. Pingback: C5 Commands | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.