Skip to content

Commit

Permalink
Merge pull request #1681 from scallahanCybernet/patch-3
Browse files Browse the repository at this point in the history
Added member function to querysetcell.json
  • Loading branch information
pfreitag authored Oct 30, 2024
2 parents b8a604d + d38b1d2 commit dacf2e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions data/en/querysetcell.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name":"querySetCell",
"type":"function",
"syntax":"querySetCell(query, column, value [, row])",
"member":"query.setCell(column, value [, row])",
"returns":"boolean",
"related":["QueryAddColumn", "QueryAddRow", "QueryNew"],
"description":" Sets a cell to a value. If no row number is specified,\n the cell on the last row is set.",
Expand All @@ -28,6 +29,13 @@
"code":"<!--- start by making a query ---> \r\n <cfquery name = \"GetCourses\" datasource = \"cfdocexamples\"> \r\n SELECT Course_ID, Descript \r\n FROM Courses \r\n </cfquery> \r\n<cfset temp = queryAddRow(GetCourses)> \r\n<cfset Temp = querySetCell(GetCourses, \"Number\", 100*CountVar)> ",
"result":"",
"runnable":false
},
{
"title":"Script member function example",
"description":"",
"code":"<cfscript>\n\tq = queryNew( \"id,name\");\n\tq.addRow();\n\tq.setCell(\"id\", 1, 1);\n\tq.setCell(\"name\", \"one\", 1);\n\twriteDump(q);\n</cfscript>",
"result":"",
"runnable":true
}
]

Expand Down

0 comments on commit dacf2e4

Please sign in to comment.