AdsGetFieldType

Advantage Client Engine

Retrieves the type of a field in a table

Syntax

UNSIGNED32

AdsGetFieldType (ADSHANDLE hTable,

UNSIGNED8 *pucFldName,

UNSIGNED16 *pusType);

Parameters

hTable (I)

Handle of table or cursor.

pucFldName (I)

Name of field.

pusType (O)

Retrieves the type of the field (ADS_LOGICAL, ADS_NUMERIC, ADS_DATE, ADS_STRING, ADS_CISTRING, ADS_MEMO, ADS_VARCHAR, ADS_COMPACTDATE, ADS_DOUBLE, ADS_INTEGER, ADS_IMAGE, ADS_BINARY; ADS_SHORTINT; ADS_TIME; ADS_TIMESTAMP; ADS_AUTOINC; ADS_RAW; ADS_CURDOUBLE, ADS_MONEY, ADS_ROWVERSION, ADS_MODTIME)

Remarks

For compatibility with other Advantage client development environments, memo fields can be used to store image and binary data in DBF tables. ADT tables cannot store image or binary data in character memo fields. If your DBF table has memo fields with binary data in them, you can use AdsGetMemoDataType to determine the exact data type when AdsGetFieldType returns ADS_MEMO.

Example

Click Here

See Also

AdsGetFieldName

AdsGetFieldNum

AdsGetFieldOffset

AdsGetFieldDecimals

AdsCreateTable

AdsGetMemoDataType