<html>
<head>
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>VALUELIST</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="Description">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">VALUELIST</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Description</span>
<p>
Inserts a delimiter between each value in an executed query. ColdFusion does not evaluate the arguments. 
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Returns</span>
<p>
A delimited list of the values of each record returned from an executed query.
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Category</span>
<p>
List functions, Query functions
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Function syntax</span><pre>ValueList(query.column [, delimiter ])
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">See also</span>
<p>
QuotedValueList
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Parameters</span>
<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Example</span><pre>&lt;h3&gt;ValueList Example&lt;/h3&gt;

&lt;!--- use the contents of a query to create another dynamically ---&gt;
&lt;cfquery name = &quot;GetDepartments&quot; datasource = &quot;cfdocexamples&quot;&gt;
SELECT Dept_ID FROM Departments
WHERE Dept_ID IN (&#39;BIOL&#39;)
&lt;/cfquery&gt;

&lt;cfquery name = &quot;GetCourseList&quot; datasource = &quot;cfdocexamples&quot;&gt;
SELECT *
FROM CourseList
WHERE Dept_ID IN (&#39;#GetDepartments.Dept_ID#&#39;)
&lt;/cfquery&gt;

Value list of all BIOL Course ID&#39;s using (--) as the delimiter:&lt;br&gt;
&lt;cfoutput&gt;
#ValueList(GetCourseList.Course_ID,&quot;--&quot;)#&lt;br&gt; 
&lt;/cfoutput&gt;

Value list of all BIOL Course Numbers using (;) as the delimiter:&lt;br&gt;
&lt;cfoutput&gt;
#ValueList(GetCourseList.CorNumber,&quot;;&quot;)#&lt;br&gt; 
&lt;/cfoutput&gt;
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="QUERY.COLUMN">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">QUERY.COLUMN</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>


<p>Name of an executed query and column. Separate query name and column name with a period.</p>

  </td>
  </tr>
  </table>
</div>
<div id="DELIMITER">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">DELIMITER</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>


<p>A delimiter character to separate column data items. The default value is comma (,).</p>

  </td>
  </tr>
  </table>
</div>

  </body>
</html>
