<html>
<head>
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>LISTVALUECOUNTNOCASE</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">LISTVALUECOUNTNOCASE</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"></span>
<p>
Xgɂw肵ľ𐔂܂B̌ł͑啶Ə͋ʂ܂B 
</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">߂l</span>
<p>
Xg value ̃CX^X̐
</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">JeS</span>
<p>
Xg֐
</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">֐̃V^bNX</span><pre>ListValueCountNoCase(list, value [, delimiters ])
</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">֘A</span>
<p>
ListValueCountAwColdFusion MX JKChx̑3͂́uColdFusion ϐ̎gpv ́uXgv
</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">p[^</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"></span><pre>&lt;cfquery name = &quot;SearchByDepartment&quot; datasource = &quot;cfdocexamples&quot;&gt;
SELECT    Department
FROM    Employees
&lt;/cfquery&gt;

&lt;h3&gt;ListValueCountNoCase ̗&lt;/h3&gt;
&lt;p&gt;̗ł́AListValueCountNoCase gpāA镔̏]ƈ𒲂ׂ܂B

&lt;form action = &quot;listvaluecountnocase.cfm&quot;&gt;
&lt;p&gt;IĂB&lt;/p&gt;
   &lt;select name = &quot;departmentName&quot;&gt;
         &lt;option value = &quot;o&quot;&gt;
            o
         &lt;/OPTION&gt;   
         &lt;option value = &quot;Ǘ&quot;&gt;
            Ǘ
         &lt;/OPTION&gt;   
         &lt;option value = &quot;Zp&quot;&gt;
            Zp
         &lt;/OPTION&gt;   
         &lt;option value = &quot;cƕ&quot;&gt;
            cƕ
         &lt;/OPTION&gt;                     
   &lt;/select&gt;
   &lt;/select&gt;
&lt;input type = &quot;Submit&quot; name = &quot;Submit&quot; value = &quot;]ƈXg&quot;&gt;
&lt;/form&gt;
&lt;!--- 镶񂪒`̂ҋ@ ---&gt;
&lt;cfif IsDefined(&quot;FORM.Submit&quot;) and IsDefined(&quot;FORM.departmentName&quot;)&gt;
   &lt;cfset myList = ValueList(SearchByDepartment.Department)&gt;
   &lt;cfset numberInDepartment = ListValueCountNoCase(myList,
      FORM.departmentName)&gt; 
       
   &lt;cfif numberInDepartment is 0&gt;
      &lt;h3&gt;&lt;cfoutput&gt;#FORM.departmentName#      &lt;/cfoutput&gt; ɂ́A]ƈ܂B&lt;/h3&gt;
   &lt;cfelseIf numberInDepartment is 1&gt;
      &lt;cfoutput&gt;      &lt;p&gt;#FORM.departmentName# ɂ 1 l]ƈ܂B
      &lt;/cfoutput&gt;
   &lt;cfelse&gt;
      &lt;cfoutput&gt;      &lt;p&gt;#FORM.departmentName# ɂ́A#numberInDepartment# l̏]ƈ܂B
      &lt;/cfoutput&gt;
   &lt;/cfif&gt;
&lt;/cfif&gt;
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="LIST">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">LIST</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>XgA܂̓Xg܂łϐłB


  </td>
  </tr>
  </table>
</div>
<div id="VALUE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">VALUE</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>AA܂͕񂩐܂ޕϐłB鍀ڂw肵܂B̌ł͑
Ə͋ʂ܂B 


  </td>
  </tr>
  </table>
</div>
<div id="DELIMITERS">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">DELIMITERS</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>A܂͕܂łϐłBXgvf̋؂蕶w肵܂BftHg
l̓J} (,) łB 
 </td>
  </tr>
  <tr>
    <td>̃p[^ɕ̕܂܂ĂꍇAꂼ̕o邷ׂẲӏ
蕶Ƃď܂B 


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

  </body>
</html>
