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

m
Line 1: Line 1:
 
'''$asc''' is used to return the ASCII character code number for a specified character.
 
'''$asc''' is used to return the ASCII character code number for a specified character.
  
= Synopsis =
+
== Synopsis ==
 
<pre>$asc(<char>)</pre>
 
<pre>$asc(<char>)</pre>
  
= Switches =
+
== Switches ==
 
None
 
None
  
= Parameters =
+
== Parameters ==
 
<span style="display: inline-block; width: 50px;">'''char'''</span>This would be any special character, letter, or number that you wish to retrieve the ASCII code for.
 
<span style="display: inline-block; width: 50px;">'''char'''</span>This would be any special character, letter, or number that you wish to retrieve the ASCII code for.
  
= Example =
+
== Example ==
 
'''Echo the ASCII code for the letter ''A'' to the active window'''
 
'''Echo the ASCII code for the letter ''A'' to the active window'''
 
<pre>//echo -a $asc(A)</pre>
 
<pre>//echo -a $asc(A)</pre>
Line 17: Line 17:
 
<pre>//echo -a $asc(7)</pre>
 
<pre>//echo -a $asc(7)</pre>
  
= Compatibility =
+
== Compatibility ==
 
Added: mIRC v4.5
 
Added: mIRC v4.5
  
 
Added On: 30/06/96
 
Added On: 30/06/96
= See also =
+
 
 +
== See also ==
 
* [[$chr identifier - mIRC|$chr]]
 
* [[$chr identifier - mIRC|$chr]]
  
[[Category:mIRC identifiers]]
+
* [[Category:mIRC identifiers]]

Revision as of 15:25, 23 June 2014

$asc is used to return the ASCII character code number for a specified character.

Synopsis

$asc(<char>)

Switches

None

Parameters

charThis would be any special character, letter, or number that you wish to retrieve the ASCII code for.

Example

Echo the ASCII code for the letter A to the active window

//echo -a $asc(A)

Echo the ASCII code for the number 7 to the active window

//echo -a $asc(7)

Compatibility

Added: mIRC v4.5

Added On: 30/06/96

See also