lrc_save_rowset_data
| Parameterization ("save") Functions |
Saves data from a cell of an OLE data rowset as the specified type.
int lrc_save_rowset_data( const char* param_name, void* pData, unsigned short SourceType, unsigned short DestType, long len );
| param_name | The name of the parameter in which to store the value. |
| pData | The buffer containing rowset data to save. |
| SourceType | The OLE Database Data Types of the data in the pData buffer. |
| DestType | The OLE Database Data Types to be saved in the parameter, generally DBTYPE_STR.
|
| len | The size in bytes of the pData buffer. |
The lrc_save_rowset_data function converts the value in the data buffer returned by a previous database fetch from the specified source type to the specified destination type and saves the value in a parameter. If a parameter of the specified name does not exist, it is created.
Return Values
Parameterization
You cannot use standard parameterization for any arguments in this function.
Example
In this example, lrc_save_rowset_data saves integer data to string parameter data_param.
In this example, lrc_save_rowset_data saves integer data to string parameter data_param.
int iLen = 4;
int iData = 20;
....
lrc_save_rowset_data (data_param, (void *)&iData, DBTYPE_I4, DBTYPE_STR, iLen);

