Oddly enough, ColdFusion doesn't have a QueryDeleteRows function. Luckily for us, Ray Camden has come up with a UDF to help us. If you view the UDF in CFLib you can plug that UDF into your code and then just issue a
ColdFISH is developed by Jason Delmore. Source code and license information available at coldfish.riaforge.org
<cfset x = "1" />
<cfset Query = QueryDeleteRows(Query,x) />
1<cfset x = "1" />
2<cfset Query = QueryDeleteRows(Query,x) />
and it will remove your row. You can even list multiple rows (e.g. "1,3,5"). This function is especially helpful with Fusebox because I had pre-existing to create a drop-down menu and I didn't need a row.
Thanks Ray!
Comments