JavaScript Editor js editor     Web development 

Main Page

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]

Return Value


Specifies a value that determines the order for a cursor index. The following table lists the values for nValue.

nValue Description


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.

See Also

JavaScript Editor js editor     Web development