Share this page

# 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

lrc Return Values

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

This example saves the Boolean value "true" to a string:

    VARIANT_BOOL var = lrc_bool("true");

    lrc_save_bool("param-name",var);

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: