skip to main content
OpenAccess SDK SQL Engine core methods for .NET : Methods for .NET reference : dam_getQueryFirstResultValue
 

dam_getQueryFirstResultValue

This method returns the first result value of the subquery. It is used by the IP to get the result values of the subquery.
object dam_getQueryFirstResultValue(
int64 hquery,
out int piXoType,
out int piValLen,
out int piValStatus)
 
Table 174: Parameters for dam_getQueryFirstResultValue 
Parameter
Type
Description
IN
 
 
hquery
int64
The subquery handle
OUT
 
 
piXoType
int
The data type of the result value
piValLen
int
The length of the data returned in the object:
XO_NULL_DATA – null data
XO_NTS – null terminated string
>= 0 – length of the data
piValStatus
int
The status of the method call:
DAM_SUCCESS – all data retrieved
DAM_NO_DATA_FOUND – no results are available. Result set is empty.
DAM_FAILURE – error in getting the data. Most likely the data cannot be converted to the XO_Type asked for.
RETURN
 
 
 
object
The object that represents the result value. The format of the data depends on the data type returned in piXoType. Use this object only if the piValLen is not set to XO_NULL_DATA. See Table 34.