<!--- This code illustrates Chr --->
<HTML>
<HEAD>
<TITLE>CHR Example</TITLE>
</HEAD>

<BASEFONT FACE="Arial, Helvetica" SIZE=2>
<BODY  bgcolor="#FFFFD5">
<H3>CHR Example</H3>
<!--- If the character string is not empty, then
output its Chr value --->
<CFIF IsDefined("form.charVals")>
		<CFOUTPUT>#form.charVals# = #CHR(form.charVals)#</CFOUTPUT>
</CFIF>

<CFFORM ACTION="chr.cfm" METHOD="POST">
<P>Type an integer from 1 to 256 to see its ASCII value.
<BR><CFINPUT TYPE="Text"
       NAME="CharVals"
       RANGE="1,256"
       MESSAGE="Please enter an integer from 1 to 256"
       VALIDATE="integer"
       REQUIRED="No"
       SIZE="3"
       MAXLENGTH="3">
<P><INPUT TYPE="Submit" NAME=""> <INPUT TYPE="RESET">
</CFFORM>

</BODY>
</HTML>       
