query.setCell()

Sets a cell to a value. If no row number is specified, the cell on the last row is set.

You can also use query.addRow() to add a new row with data.

query.setCell( column_name, value [, row_number ] )

Returns: Boolean

Argument Description
column_name
string, required

Alias: columnName

value
any, required
row_number
number, optional

Alias: row, number

Examples

q = queryNew( "id,name");
q.addRow();
q.setCell("id", 1, 1);
q.setCell("name", "one", 1);
dump(q);

See also