AdsSetIndexDirection

Advantage Client Engine

Reverses the DESCEND flag on an index.

Syntax

UNSIGNED32

AdsSetIndexDirection( ADSHANDLE hIndex,

UNSIGNED16 usReverseDirection );

Parameters

hIndex (I)

Handle of index order.

usReverseDirection (I)

If FALSE (0) the original state of the DESCEND flag is restored. If TRUE (1) the DESCEND flag is flipped for the index.

Remarks

The DESCEND flag of the index is flipped when usReverseDirection is TRUE. The index is then traversed in the opposite direction. Any scopes on the index must be reset because the top and bottom key have been reversed.

 

This option is not supported for ADS_NTX indexes.

Example

ulRetCode = AdsSetIndexDirection( hIndex2, 1 );

See Also

AdsSkip

AdsGetRecordCount

AdsGetRecordNum

AdsGotoBottom

AdsGotoRecord

AdsGotoTop

AdsAtBOF

AdsAtEOF