Sets a cell to a value. If no row number is specified,
the cell on the last row is set.
querySetCell(query, column, value [, row])
→ returns boolean
query.setCell(column, value [, row])
<!--- start by making a query --->
<cfquery name = "GetCourses" datasource = "cfdocexamples">
SELECT Course_ID, Descript
FROM Courses
</cfquery>
<cfset temp = queryAddRow(GetCourses)>
<cfset Temp = querySetCell(GetCourses, "Number", 100*CountVar)>
<cfscript>
q = queryNew( "id,name");
q.addRow();
q.setCell("id", 1, 1);
q.setCell("name", "one", 1);
writeDump(q);
</cfscript>
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.