short GetColumnValue(long QueryID, long Index, VARIANT* Value)
Description
This function returns the data value for the column specified in Index for the current row of data. You use this function in conjunction with FetchNextRowEx() in order to access specific data in a single row of data.
Parameters
Name | Description |
---|---|
QueryID | The ID of the query, as returned from InitializeQuery() or InitializeStaticQuery(). |
Index | The zero-based index of the row of data to be retrieved. |
Value | A pointer to a VARIANT in which you want to store the results. The result is a data value based on the variant type. 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