INDEXORD()
Returns the numeric position of the controlling index.
Syntax
INDEXORD() --> <nPosition>
Arguments
None.
Returns
<nPosition> Ordinal position of a controling index
Description
The INDEXORD() function returns the numeric position of the current controlling index in the selected or designated work area. A returned value of 0 indicated that no active index is controlling the database, which therefore is in the natural order.
Examples
USE tests NEW INDEX test1 IF INDEXORD() > 0 ? "Current order is", INDEXORD() ENDIF
Compliance
Clipper
Platforms
All
Files
Library is rdd
Seealso
INDEXKEY()
Pingback: Harbour All Functions – I | Viva Clipper !
Pingback: Harbour Index / Order System Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !