query.getCell()

return the value of a specific query cell

query.getCell( column_name=string, row_number=number )

Returns: any

Argument Description
column_name
string, required

name of the column

row_number
number, optional

row number (1-n)

Examples

q = queryNew( "id,name","int,varchar");
q.addRow(4);
q.setCell("id", 1, 1);
q.setCell("id", 2,2);
q.setCell("id", 3,3);
q.setCell("id", 4,4);
q.setCell("name", "one", 1);
q.setCell("name", "two", 2);
q.setCell("name", "three",3);
q.setCell("name", "four", 4);
dump(q);
writeDump(q.getcell("id",1));
writeDump(q.getcell("name",3));

See also