bool Table::UpdateCellByIndex(unsigned rowIndex, unsigned columnIndex, char *str) { assert(columns[columnIndex].columnType==STRING); Row *row = GetRowByIndex(rowIndex,0); if (row) { row->UpdateCell(columnIndex, str); return true; } return false; }
bool Table::UpdateCellByIndex(unsigned rowIndex, unsigned columnIndex, int byteLength, char *data) { assert(columns[columnIndex].columnType==BINARY); Row *row = GetRowByIndex(rowIndex,0); if (row) { row->UpdateCell(columnIndex, byteLength, data); return true; } return false; }
bool Table::UpdateCellByIndex(unsigned rowIndex, unsigned columnIndex, int value) { assert(columns[columnIndex].columnType==NUMERIC); Row *row = GetRowByIndex(rowIndex,0); if (row) { row->UpdateCell(columnIndex, value); return true; } return false; }