Name
Asc
Synopsis
Asc(character
)
Returns the ASCII character code (number) for a given character. Here’s an example that generates a chart of the printable ASCII character codes:
<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 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.