Welcome

User: Pass:   register


The $asc identifier will return the ascii number of the specified character.

Format

$asc(<character>)

Parameters

  • <character> The character that has the ascii number you want to return.

Properties

None.

Points To Note

To get the ascii number of a comma (,) or bracket you must either pass a variable or identifier to $asc.
Windows has a character map built in. Type /run charmap in mIRC to view it.
The ascii number for a space is 32.

Examples

//echo -a $asc(!)

Output: 33

//var %a = , | echo -a $asc(%a)

This shows you how to get the ascii number of a special character.

//echo -a $asc(/)

Output: 47

//echo -a $asc($?)

This will display the ascii number of the character you type in the box that appears.

Hacks

None.

Related Articles

ASCII

Related Commands

None.

Related Events

None.

Related Identifiers

$chr

Text and Number Identifiers
$abs$acos$and$asc$asin$atan$base$biton$bitoff$bytes$calc$ceil$chr$compress$cos$count$decode$decompress$encode$floor$int$isbit$islower$isupper$left$len$log$longip$lower$mid$noqt$not$or$ord$pos$poscs$qt$rand$remove$removecs$replace$replacecs$replacex$replacexcs$right$round$sin$sqrt$str$strip$stripped$tan$upper$wrap$xor






© 1996-2010 hdesk.org and dalnethelpdesk.com