<html>
<head>
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>STRUCTKEYARRAY</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">STRUCTKEYARRAY</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>
\̓̃L[o܂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>
L[̔zBstructure ݂Ȃꍇ͗O܂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">JeS</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">֐̃V^bNX</span><pre>StructKeyArray(structure)
</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>
\̊֐AwColdFusion MX JKChx̑35͂́uXML  WDDX ̎gpv ́uColdFusion XML IuWFNg̕ύXv
</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">gp@</span>
<p>
\̂̃L[̓\[gĂ܂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"></span><pre>&lt;!--- ̗́AStructKeyArray ֐gpāA\̂zɃL[Rs[@Ă܂B 
StructNew ֐gpč\̂쐬AtH[tB[hɓ͂ꂽ̍\̂̃tB[hɊi
[܂B ---&gt;
&lt;h3&gt;StructKeyArray ̗&lt;/h3&gt;
&lt;h3&gt;Employee \̂̃L[o&lt;/h3&gt;   
&lt;!-- \̂쐬܂B[M] ꂽǂmF܂Bꂽꍇ́AtH[ɓ͂ꂽ
gpāAemployee \̂̃tB[h`܂B -----&gt;
&lt;cfset employee = StructNew()&gt; 
&lt;cfif Isdefined(&quot;Form.Submit&quot;)&gt;
   &lt;cfif Form.Submit is &quot;OK&quot;&gt;
      &lt;cfset employee.firstname = FORM.firstname&gt;
      &lt;cfset employee.lastname = FORM.lastname&gt;
      &lt;cfset employee.email = FORM.email&gt;
      &lt;cfset employee.phone = FORM.phone&gt;
      &lt;cfset employee.company = FORM.company&gt; 
   &lt;cfelseIf Form.Submit is &quot;Clear&quot;&gt;
      &lt;cfset rc = StructClear(employee)&gt;
   &lt;/cfif&gt;
&lt;/cfif&gt;    
&lt;p&gt; ̗ł́AStructNew ֐gpāA&quot;employee&quot; ƂO̍\̂쐬܂B́A]ƈ
i[邽߂̍\̂łB\̂̊etB[hɊi[̓tH[œ͂܂B]ƈ\
̂Ɋi[AStructKeyArray ֐gpāA\ׂ̂̂ẴL[zɃRs[܂B&lt;/p&gt;
&lt;hr size = &quot;2&quot; color = &quot;#0000A0&quot;&gt;
&lt;form action = &quot;structkeyarray.cfm&quot;&gt;
&lt;table cellspacing = &quot;2&quot; cellpadding = &quot;2&quot; border = &quot;0&quot;&gt;
   &lt;tr&gt;
   &lt;td&gt;O :&lt;/td&gt;
   &lt;td&gt;&lt;input name = &quot;firstname&quot; type = &quot;text&quot; 
      value = &quot;&quot; hspace = &quot;30&quot; maxlength = &quot;30&quot;&gt;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
   &lt;td&gt; :&lt;/td&gt;
   &lt;td&gt;&lt;input name = &quot;lastname&quot; type = &quot;text&quot; 
      value = &quot;&quot; hspace = &quot;30&quot; maxlength = &quot;30&quot;&gt;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
   &lt;td&gt;dq[ :&lt;/td&gt;
   &lt;td&gt;&lt;input name = &quot;email&quot; type = &quot;text&quot; 
      value = &quot;&quot; hspace = &quot;30&quot; maxlength = &quot;30&quot;&gt;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
   &lt;td&gt;dbԍ :&lt;/td&gt;
   &lt;td&gt;&lt;input name = &quot;phone&quot; type = &quot;text&quot; 
      value = &quot;&quot; hspace = &quot;20&quot; maxlength = &quot;20&quot;&gt;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
   &lt;td&gt;Ж :&lt;/td&gt;
   &lt;td&gt;&lt;input name = &quot;company&quot; type = &quot;text&quot; 
      value = &quot;&quot; hspace = &quot;30&quot; maxlength = &quot;30&quot;&gt;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
   &lt;td&gt;&lt;input type = &quot;submit&quot; name = &quot;submit&quot; 
      value = &quot;M&quot;&gt;&lt;/td&gt;
   &lt;td&gt;&lt;b&gt;tH[̑MAɃXN[Ɣz񂪕\܂B&lt;/b&gt;
   &lt;/td&gt;
   &lt;/tr&gt;
&lt;/table&gt;
&lt;/form&gt;
&lt;cfif NOT StructISEmpty(employee)&gt; 
   &lt;hr size = &quot;2&quot; color = &quot;#0000A0&quot;&gt;
   &lt;cfset keysToStruct = StructKeyArray(employee)&gt;
   &lt;cfloop index = &quot;i&quot; from = &quot;1&quot; to = &quot;#ArrayLen(keysToStruct)#&quot;&gt;
      &lt;p&gt;&lt;cfoutput&gt;Key#i#  #keysToStruct[i]#&lt;/cfoutput&gt; łB&lt;/p&gt;
      &lt;p&gt;&lt;cfoutput&gt;Value#i#  #employee[keysToStruct[i]]#&lt;/cfoutput&gt; łB
      &lt;/p&gt;
   &lt;/cfloop&gt;
&lt;/cfif&gt;
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="STRUCTURE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">STRUCTURE</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>\̂łB̒ɂL[̃Xgo܂B


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

  </body>
</html>
