AdsGetTableCollation

Advantage Client Engine

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

Syntax

UNSIGNED32

AdsStmtGetTableCollation ( ADSHANDLE hConnect,

UNSIGNED8 *pucCollation,

UNSIGNED16 *pusLen );

Parameters

hTbl (I)

Handle of table or cursor.

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

AdsGetTableCollation gets the collation language that the table was opened or created with. If no collation language was specified when the table was opened or created, AdsGetTableCollation returns an empty string.

Example

ulRetCode = AdsOpenTable90( 0, "D:\\data\\customers.dbf", "customers", ADS_VFP,

ADS_ANSI, ADS_COMPATIBLE_LOCKING, ADS_IGNORERIGHTS, ADS_DEFAULT, "GERMAN_VFP_CI_AS_1252", &hTable );

usLen = sizeof( aucCollation );

ulRetCode = AdsGetTableCollation( hTable, aucCollation, &usLen );

See Also

AdsGetIndexCollation

AdsSetCollation

AdsGetCollation

AdsStmtSetTableCollation