queryToCsv2 util function updated
ColdFusion
This function has been very handy in dealing with turning query objects directly into CSV format.
Qasim Rasheed's original, http://www.cflib.org/udf.cfm?id=1197&enable=1, works wonderfully, and the speed is excellent.
I've tweaked it for readability (my preference) and to allow a delimiter other than comma to optionally be passed in. Also, I made it a cffunction, so that it's easy to add to a utilities.cfc (or whatever you call yours)
I've tweaked it for readability (my preference) and to allow a delimiter other than comma to optionally be passed in. Also, I made it a cffunction, so that it's easy to add to a utilities.cfc (or whatever you call yours)






Loading....