COM Vuser Functions (LRC) > Alphabetical List of Functions > lrc_RecordsetAddColumn

lrc_RecordsetAddColumn

Example lrc_RecordsetAddColumn ADO Recordset Functions

Adds a new column to a recordset.

void lrc_RecordsetAddColumn( Recordset15* recordset, BSTR name,int type, 
long size, int attribute );
recordset An ADO recordset.
name The name of the column to add.
type The data type of the column.
size The size of the data.
attribute A recordset attribute.

The lrc_RecordsetAddColumn function adds a new column to a recordset. It is similar to the Append ADO method.

To delete a column from a recordset, see the Fields interface Delete method call in MSDN.

Return Values

lrc Return Values

Parameterization

Parameterization is not applicable to this function.