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=string, value=any, row_number=number )
Returns: Query
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);