|Visual FoxPro 9.0 SP2|
Specifies an ascending or descending order for the controlling index tag specified by the Order property of a Cursor object. Read/write at design time and run time.
OrderDirection is disregarded when the cursor's Order property is empty.
Cursor.OrderDirection [= nValue]
Specifies a value that determines the order for a cursor index. The following table lists the values for nValue.
Base index order on how the index file or tag is defined, for example, using the INDEX command. (Default)
Set index order to ascending.
Set index order to descending.
Applies To: Cursor
Setting OrderDirection to ascending or descending order is equivalent to calling the SET ORDER command with the ASCENDING or DESCENDING keyword. However, you can change the controlling index and its order for a cursor without changing the OrderDirection and Order properties. Changes to the OrderDirection property do not affect the index order until the Order property is also changed.
Comment or report problem with topic