# DESCEND()

Inverts an expression of string, logical, date or numeric type.

Syntax

  DESCEND( <xExp> ) --> xExpInverted

Arguments

  <xExp> is any valid expression.

Returns

  Inverted value of the same type as passed.

Description

  This function converts an expression in his inverted form. It is useful to build descending indexes.

Examples

          // Seek for Smith in a descending index
          SEEK DESCEND( "SMITH" )
    Tests
          DATA->( DBSEEK( DESCEND( "SMITH" ) ) )
          will seek "SMITH" into a descending index.

Status

  Ready

Compliance

  DESCEND() is fully CA-Clipper compliant.

Files

  Library is rtl

See Also

- INDEX
- SEEK