AdsGetKeyType

Advantage Client Engine

Returns the Advantage Client Engine data type of the evaluated index keys.

Syntax

UNSIGNED32

AdsGetKeyType (ADSHANDLE hIndex,

UNSIGNED16 *pusType);

Parameters

hIndex (I)

Handle of an index order.

pusType (O)

Returns the data type of keys in this index order.

Remarks

Returns the data type of the key as evaluated by the Advantage Client Engine. Possible key types are ADS_STRING, ADS_NUMERIC, ADS_DATE, ADS_LOGICAL, and ADS_RAW. ADS_RAW is returned for any index that uses the binary concatenation operator (‘;’) and for indexes created on time, timestamp, and raw fields.

Example

None.

See Also

AdsCreateIndex

AdsOpenIndex

AdsGetIndexExpr

AdsGetKeyLength