AddRow
Adds a DataRow to the DataTable.
Syntax
int addRow(DataTable* dataTable, DataRow* dataRow)
Parameter
- Datatable - the DataTable to which this function applies
- Datarow to be added to the DataTable
Results
Returns 0 if successful or error code.
Example
// Assume that dataTable is given here DataRow* newDataRow;
int nRet;
newDataRow = newRow( dataTable );
setByIndex (newDataRow, 0 , "10535 Boyer Blvd");
setByIndex (newDataRow, 1 , "Austin");
setByIndex (newDataRow, 2 , "Texas");
nRet = addRow( dataTable, newDataRow);