<html>
<head>
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>ARRAYMIN</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">ARRAYMIN</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>
Array minimum function. 
</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>
The smallest numeric value in an array. If the array parameter value is an empty array, returns zero. 
</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>
Array 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>ArrayMin(array)
</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">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;ArrayMin Example&lt;/h3&gt;
&lt;p&gt;This example uses ArrayMin to find the smallest number in an array.&lt;br&gt;&lt;/p&gt;
&lt;!--- After checking whether the form has been submitted, this code creates an
array and assigns the form fields to the first two elements. -----&gt;
&lt;cfif IsDefined(&quot;FORM.submit&quot;)&gt;
   &lt;cfset myNumberArray = ArrayNew(1)&gt;
   &lt;cfset myNumberArray[1] = FORM.number1&gt;
   &lt;cfset myNumberArray[2] = FORM.number2&gt;
      
   &lt;cfif Form.Submit is &quot;Minimum Value&quot;&gt;   
      &lt;!--- use ArrayMin to find the smallest number in the array ---&gt;
      &lt;p&gt;The smallest number that you entered is
      &lt;cfoutput&gt;#ArrayMin(myNumberArray)#.&lt;/cfoutput&gt;
   &lt;/cfif&gt;   
&lt;/cfif&gt;   
&lt;!---- The following form provides two numeric fields that are compared when 
the form is submitted. -----&gt;
&lt;form action = &quot;arraymin.cfm&quot;&gt;
&lt;input type = &quot;hidden&quot; name = &quot;number1_Float&quot;&gt;
&lt;input type = &quot;hidden&quot; name = &quot;number2_Float&quot;&gt;
&lt;input type = &quot;text&quot; name = &quot;number1&quot;&gt;&lt;br&gt;
&lt;input type = &quot;text&quot; name = &quot;number2&quot;&gt;&lt;br&gt;
&lt;input type = &quot;submit&quot; name = &quot;submit&quot; value = &quot;Minimum Value&quot;&gt;
&lt;/form&gt;
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="ARRAY">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">ARRAY</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 array </p>

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

  </body>
</html>
