AdsGetDouble

Advantage Client Engine

Retrieves an 8-byte double value from the given field.

Syntax

UNSIGNED32

AdsGetDouble (ADSHANDLE hTable,

UNSIGNED8 *pucFldName,

double64 *pdValue);

Parameters

hTable (I)

Handle of table or cursor.

pucFldName (I)

Name of field to retrieve.

pdValue (O)

Return the value.

Remarks

AdsGetDouble returns the IEEE 64-bit double representation of the value in a numeric, integer, short integer, double, CurDouble, Money, RowVersion, or autoincrement field. This function provides the most precision available in the Advantage Client Engine for retrieving numeric values.

The pucFldName parameter can be passed as the field name itself or as the one-based integer field position. To pass an integer field position for the pucFldName parameter, use the ADSFIELD macro that is defined in ACE.H. For example, to specify the first field in the table, pass ADSFIELD(1) for the pucFldName parameter; to specify the second field in the table, pass ADSFIELD(2) for the pucFldName parameter; etc.

Example

Click Here

See Also

AdsSetDouble

AdsGetField

AdsGetLong

AdsGetLongLong