Advantage Client Engine
Returns the specific type of data stored in a memo field.
UNSIGNED32 |
AdsGetMemoDataType (ADSHANDLE hTable, UNSIGNED8 *pucFldName, UNSIGNED16 *pusType); |
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. |
AE_NO_CURRENT_RECORD |
Data cannot be retrieved from EOF or BOF |
AdsGetMemoDataType is provided for compatibility with other Advantage client development environments, which store binary data in DBF memo fields. If a DBF table has a memo field that is used for storing binary data, then this function can be used to determine the exact type of data stored in the memo field on a record-by-record basis. A type of ADS_IMAGE indicates that an image is stored in the memo field. ADS_BINARY indicates that some kind of generic binary data is in the field. If the field is a standard memo, the function will return ADS_MEMO for pusType. ADT tables cannot store binary and image data in standard character memo fields.