• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

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>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint