AdsGetLongLong

Advantage Client Engine

Retrieves the signed long long integer from the given field.

Syntax

UNSIGNED32

AdsGetLongLong (ADSHANDLE hObj, UNSIGNED8 *pucFldName,

SIGNED64 *pqValue);

Parameters

hObj (I)

Handle of table, cursor, statement, or index order.

pucFldName (I)

Name of field to get.

pqValue (O)

Return the value.

Remarks

AdsGetLongLong returns the signed long long (SIGNED64) value stored in the numeric, integer, short integer, double, CurDouble, auto-increment, RowVersion, or Money field. If more precision is desired, use AdsGetDouble. When using this function to retrieve an auto-increment value, be sure to treat the result as an unsigned value.

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

AdsPrepareSQL( hStatement,

"SELECT FROM test WHERE cost > 100000000" );

AdsExecuteSQL( hStatement, &hCursor);

AdsGetLongLong( hCursor, "cost", &qValue );

See Also

AdsGetField

AdsGetLong

AdsSetLongLong