AdsGetIndexCollation

Advantage Client Engine

Gets the collation language that the index was created or opened with.

Syntax

UNSIGNED32

AdsStmtGetIndexCollation ( ADSHANDLE hIndex,

UNSIGNED8 *pucCollation,

UNSIGNED16 *pusLen );

Parameters

hIndex (I)

Handle of an index order.

pucCollation (O)

Return the collation language in this buffer. See dynamic collation support.

pusLen (I/O)

Length of given buffer on input, length of returned data on output.

Remarks

AdsGetIndexCollation returns the collation language the index was created or opened with. When an index is opened or created, it inherits the collation language used by the table it belongs to.

Example

usLen = sizeof( aucCollation );

ulRetCode = AdsGetIndexCollation( hIndex, aucCollation, &usLen );

See Also

AdsGetTableCollation

AdsSetCollation

AdsGetCollation

AdsStmtSetTableCollation