Ordering - BaseData_Set

Specifies the index which should be used for all find operations

Type: Property

Access: Read/Write

Data Type: Integer

Parameters: None

Syntax
 Property Integer Ordering

Read Access: Get Ordering to IntegerVariable
Write Access: Set Ordering to IntegerVariable/Value


Description

The Ordering property specifies the index which should be used for all find operations that do not specify an index. If this property is greater than or equal to zero, the corresponding index will be used for all find operations. A value of zero indicates that the record number (RECNUM) index should be used.

Sample

This sample gets the Ordering property to variable iIndex.

integer iIndex
get Ordering to iIndex

Sample

This sample sets the Ordering property to Index 2.

set Ordering to 2


Default is -1, which tells the runtime to choose the most-appropriate index based on current constraints.


If you want to reverse ordering in a grid, you can use pbReverseOrdering (Windows) pbReverseOrdering (Web).

See Also

pbReverseOrdering