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( query, column_name, value [, row_number ] )

Returns: Boolean

Argument Description
query
query, required

Name of an executed query.

Alias: query

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