ADS -> AdsGetFieldType y AdsGetMemoDataType

Post Reply
User avatar
Carles
Posts: 937
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona
Contact:

ADS -> AdsGetFieldType y AdsGetMemoDataType

Post by Carles »

Hola,

Alguien tiene codificadas las funciones AdsGetMemoDataType() y/o AdsGetFieldType() ?. No consigo afinarlas :cry:

AdsGetFieldType()

Code: Select all

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)
AdsGetMemoDataType()

Code: Select all

Syntax

UNSIGNED32 AdsGetMemoDataType (ADSHANDLE hTable,  UNSIGNED8 *pucFldName, UNSIGNED16 *pusType); 

Parameters

hTable  (I)	Handle of table or cursor.

pucFldName  (I)	Name of the field to check memo type.

pusType  (I)	Buffer in which to return the type of memo. This will be one of the following: ADS_MEMO, ADS_BINARY, or ADS_IMAGE.

Gracias por el cable.
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

https://modharbour.app
https://modharbour.app/compass
https://forum.modharbour.app
Post Reply