Charmander

Untitled

Jul 19th, 2011
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. alias asciiform {
  2. set %stuffsies $$1-
  3. while ($len(%stuffsies) > 0) {
  4. set %character $left(%stuffsies,1)
  5. set %finalresult %finalresult $+ $chr( $+ $asc(%character) $+ ),
  6. set %stuffsies $right(%stuffsies,-1)
  7. }
  8. set %finalresult $remove(%finalresult,)
  9. set %finalresult $left(%finalresult,-1)
  10. echo -a %finalresult
  11. unset %finalresult
  12. }
  13. ----
  14. alias ascii {
  15. var %string $1-
  16. while (%string) {
  17. var %string_out %string_out $+ $!chr( $+ $asc($left(%string,1)) $+ ) $+ $iif($len(%string) != 1,$chr(44))
  18. var %string $mid(%string,2,$len(%string))
  19. }
  20. msg $active $!+( $+ %string_out $+ )
  21. }
Advertisement
Add Comment
Please, Sign In to add comment