IndexOrd()

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()

Advertisements

3 responses to “IndexOrd()

  1. Pingback: Harbour All Functions – I | Viva Clipper !

  2. Pingback: Harbour Index / Order System Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s