Share this page

# lrc_RecordsetWrite

ADO Recordset Functions

Updates a field in an ADO recordset.

    void lrc_RecordsetWrite( Recordset15* recordset, VARIANT vIndex, VARIANT vValue, long steps );

recordset | An ADO recordset.
vIndex | Either the column number or the column name of the field.
vValue | The new value of the field.
steps | The number of steps to move within the recordset.

The lrc_RecordsetWrite function updates a field in an ADO recordset. First, it moves the pointer the specified number of steps within the recordset. Then it writes the value to the current record. This function can represent user changes to an item in a grid.

## Return Values

lrc Return Values

## Parameterization

Parameterization is not applicable to this function.

## Example

This example saves an agent name derived from one recordset as the Index field of a different one:

    lrc_save_rs_param((Recordset15*)Recordset20_0 , 2 , 1, 0, "Saved_AGENT_NAME");

         {

             VARIANT Index = lrc_variant_BSTR("TICKETS_ORDERED");

             VARIANT Value = lrc_variant_short("<Saved_AGENT_NAME>");

             lrc_RecordsetWrite((Recordset15*)_Recordset_0 , Index, Value, 5);

         }

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: