Syntax
OrdDescend( [cOrder | nPosition], [cIndexFile], [lNewDescend] ) --> lCurrentDescendArguments
Optional order selector, index file and new descending flag.
Return value
Current or previous descending state.
Description
OrdDescend() reads or changes the direction of an order in the current work area.
Notes
An order must be available.
Example
PROCEDURE Main()
DbUseArea( .T., , "people.dbf", "People" )
QOut( "Descending: " + IIF( OrdDescend( 1 ), "YES", "NO" ) )
DbCloseArea()
RETURNOutput