GetColumnValueEx()


" "

short GetColumnValueEx(long QueryID, long RowIndex, long ColIndex, VARIANT* Value)

Description

This function returns the data value for the column specified in ColIndex for the row of data specified in RowIndex. You use this function with FetchNextRowsEx() to access the data in a single row of data.

Parameters

Name Description
QueryID The ID of the query, as returned from InitializeQuery() or InitializeStaticQuery().
RowIndex The zero-based index of the row of data to be retrieved.
ColIndex The zero-based index of the column of data to be retrieved.
Value

A pointer to a VARIANT in which you want to store the results. You can query the resulting variant to find out the data type for further processing.

Initialize the VARIANT before calling this function. Visual Basic does this automatically. Visual C++ programmers should call VariantInit().

Return Value

The return value will be zero, if successful and non-zero if unsuccessful. If the return value is non-zero, you can call GetLastErrorString(), GetLastErrorType(), GetLastSQLCode(), GetLastSQLError(), or GetLastSQLState() to get additional error information.

Related Tasks

GetColumnValue()
FetchNextRowEx()
FetchNextRowsEx()