$FUNCNAME$
  DESCEND()
$CATEGORY$
  DATABASE
$SUMMARY$
   Create a descending index key value
$LANG_RU$
         .
$SYNTAX$
     DESCEND(<exp>) --> ValueInverted
$LANG_RU$
     DESCEND(<>) -->  
$ARGUMENTS$
     <exp> is any valid expression of character, date, logical, or
     numeric type.  Memo type is treated in the same way as character type.
$LANG_RU$
     <> -    , ,
         .  memo  
     .
$RETURNS$
     DESCEND() returns an inverted expression of the same data type as the
     <exp>, except for dates which return a numeric value.  A DESCEND() of
     CHR(0) always returns CHR(0).
$LANG_RU$
     DESCEND()     ,   
     <>   ,   , 
        .   DESCEND() 
      CHR(0) - CHR(0).
$DESCRIPTION$
     DESCEND() is a conversion function that returns the inverted form of the
     specified expression to be used with INDEX to create descending order
     indexes.  Specify that part of the index expression you want to be
     descending as the DESCEND() argument.  To subsequently perform a lookup
     with SEEK, specify DESCEND() in the search expression.
$LANG_RU$
     DESCEND() -   ,  
       <>   . 
           INDEX  
     ,    .   ,
          ,    
      ,     DESCEND().
           SEEK, DESCEND() 
       .
$EXAMPLES$
       This example uses DESCEND() in an INDEX expression to create a
	descending order date index:

	USE Sales NEW
	INDEX ON DESCEND(OrdDate) TO SalesDate

	Later, use DESCEND() to SEEK on the descending index:

	SEEK DESCEND(dFindDate)

       This example illustrates how to create a descending order
	index using more than one data type.  Here, the key is created using
	the concatenation of date and character fields after the appropriate
	type conversion has taken place.  This example uses STR() instead of
	DTOS(), since DESCEND() of a date returns a numeric value:

	USE Sales NEW
	INDEX ON STR(DESCEND(SaleDate)) + Salesman TO LastSale
$LANG_RU$
           DESCEND()   
       INDEX      :

       USE Sales NEW
       INDEX ON DESCEND(OrdDate) TO SalesDate

      , DESCEND()      SEEK  
         ,    :

       SEEK DESCEND(dFindDate)

         ,      
       ,    .   
               
       .    DTOC()   STR(),
         DESCEND()       :

       USE Sales NEW
       INDEX ON STR( DESCEND(SaleDate)) + Salesman TO LastSale
$SEEALSO$

$END$
