Used as a custom identifier to turn a string of text into a line of $chr values.
EX: //echo -a $astring(Test) returns $chr(116) $+ $chr(101) $+ $chr(115) $+ $chr(116) $+ $chr() $+
Note: For some reason, $astring() tends to leave a blank $chr() $+ on the end of the returned text. It doesn't affect the output of the script, but if someone could tell me WHY this happens, I would very much appreciate it! :)
astring {
var %y 0
while (%y < $len($1-)) {
var %x $right($1-,$calc($len($1-) - %y))
var %z %z $ $+ chr( $+ $asc($left(%x,1)) $+ ) $ $+ +
inc %y 1
}
return %z
}