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
Parameterization
Parameterization is not applicable to this function.
Example
In the following example, the lrc_RecordsetAddColumn adds a new column to a recordset.
int at = lrc_int("-1"); /* default */lrc_RecordsetAddColumn((Recordset15*)Recordset20_0, "ID", "char", 12, at);

