<html>
<head>
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>CHR</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">CHR</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>
Converts a numeric value to a UCS-2 character.
</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 character with the specified UCS-2 character code.
</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>
String 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>Chr(number) 
</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>
Asc
</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">History</span>
<p>
ColdFusion&#160;MX: Changed Unicode support: ColdFusion supports the Java UCS-2 representation of Unicode characters, up to a value of 65535. (Earlier releases supported 1-255.) 
</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">Usage</span>
<p>
The values 0 - 31 are standard, nonprintable codes. For example:
</p>
<ul>

<li>Chr(10) returns a linefeed character</li>

<li>Chr(13) returns a carriage return character</li>

<li>The two-character string Chr(13) &amp; Chr(10) returns a Windows newline </li>
</ul>
<table>
  <tr valign="top">
    <td width="30"><strong>Note: </strong></td>
    <td>For a complete list of the Unicode characters and their codes, see www.unicode.org/charts/</a>.</td>
  </tr>
</table>    </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;!--- If the character string is not empty, then
      output its Chr value. ---&gt;
&lt;cfif IsDefined(&quot;form.charVals&quot;)&gt;
      &lt;cfoutput&gt;#form.charVals# = #Chr(form.charVals)#&lt;/cfoutput&gt;
&lt;/cfif&gt;

&lt;cfform action=&quot;#CGI.script_name#&quot; method=&quot;POST&quot;&gt;
   &lt;p&gt;Type an integer character code from 1 to 65535<b>&lt;br&gt;
</b>      to see its corresponding character.&lt;br&gt;
   &lt;cfinput type=&quot;Text&quot; 
      name=&quot;CharVals&quot; 
      range=&quot;1,65535&quot; 
      message=&quot;Please enter an integer from 1 to 65535&quot; 
      validate=&quot;integer&quot; 
      required=&quot;Yes&quot; 
      size=&quot;5&quot; 
      maxlength=&quot;5&quot;
      &gt;
&lt;p&gt;&lt;input type=&quot;Submit&quot; name=&quot;&quot;&gt; &lt;input type=&quot;RESET&quot;&gt;
&lt;/cfform&gt;
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="NUMBER">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">NUMBER</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 value (a number in the range 0 to 65535, inclusive)</p>

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

  </body>
</html>
