Name
Chr
Synopsis
Chr(number
)
Returns the character equivalent of the ASCII character code. The following example generates a chart of all the printable ASCII characters:
<table border="1"> <tr><th>Character</th><th>ASCII Code</th>/tr> <cfloop index="Character" from="33" to="255"> <cfoutput> <tr><td>#Chr(Character)#</td><td>#Asc(Chr(Character))#</td></tr> </cfoutput> </cfloop> </table>
Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.