asc

Determines the value of a character.

asc(String) → returns Numeric

asc Argument Reference

String
Required

Examples sample code invoking the asc function


character and value of korean currency symbol ( unicode number 8361 )

x = chr( 8361 ); 
 writeoutput( 'character: #x#' ); 
 x = asc( x ); 
 writeoutput( '<br>Unicode value: #x#');

Fork me on GitHub