Whatever message this page gives is out now! Go check it out!
QuotedValueList(query.column [, delimiter ])Parameter | Description |
query.column | Name of an executed query and column. Separate query name and column name with a period. |
delimiter | A string or a variable that contains one. Character(s) that separate column data. |
<cfscript>
myQuery = queryNew("id,name,amount","Integer,Varchar,Integer",
[
{id=1,name="One",amount=15},
{id=2,name="Two",amount=18},
{id=3,name="Three",amount=32},
{id=4,name="Four",amount=53}
]);
// add columns
QueryAddColumn(myQuery,"city","Varchar",["London","Madrid","Paris","Munich"])
// QuotedValueList
myList=QuotedValueList(myQuery.city,"|")
writeOutput(myList)
</cfscript><cfquery name = "GetCourseList" datasource = "cfdocexamples">
select * from APP.COURSELIST where DEPT_ID in ('BIOL','MATH')
</cfquery>
<cfscript>
myList=QuotedValueList(GetCourseList.CORNUMBER," | ");
WriteDump(myList);
</cfscript>