AddRow
DataRow を DataTable に追加します。
構文
int addRow(DataTable* dataTable, DataRow* dataRow)
パラメータ
- Datatable - この関数で操作する DataTable。
- DataTable に追加する DataRow。
結果
0 (正常終了) またはエラー コードを返します。
例
// 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);