From WikiChip
Difference between revisions of "mirc/identifiers/$chr"
< mirc‎ | identifiers

m
Line 1: Line 1:
'''$chr''' returns the character attached to a specified ASCII character code.
+
'''$chr''' returns the character attached to a specified [[Unicode]] [[code point]] number.
  
 
== Synopsis ==
 
== Synopsis ==
Line 8: Line 8:
  
 
== Parameters ==
 
== Parameters ==
<span style="display: inline-block; width: 50px;">'''N'''</span>This is the ASCII code value that you wish to retrieve the character for.
+
<span style="display: inline-block; width: 50px;">'''N'''</span>This is the [[Unicode]] [[code point]] value that you wish to retrieve the character for.
  
 
== Example ==
 
== Example ==
'''Echo the character attached to ASCII code ''63'' to the active window'''
+
'''Echo the character attached to [[Unicode]] [[code point]] ''63'' to the active window'''
 
<pre>//echo -a $chr(63)</pre>
 
<pre>//echo -a $chr(63)</pre>
  
'''Echo the character attached to ASCII code ''85'' to the active window'''
+
'''Echo the character attached to [[Unicode]] [[code point]] ''85'' to the active window'''
 
<pre>//echo -a $chr(85)</pre>
 
<pre>//echo -a $chr(85)</pre>
  

Revision as of 17:11, 23 June 2014

$chr returns the character attached to a specified Unicode code point number.

Synopsis

$chr(<N>)

Switches

None

Parameters

NThis is the Unicode code point value that you wish to retrieve the character for.

Example

Echo the character attached to Unicode code point 63 to the active window

//echo -a $chr(63)

Echo the character attached to Unicode code point 85 to the active window

//echo -a $chr(85)

Compatibility

Added: mIRC v4.5

Added On: 30/06/96

See also