CHR: Difference between revisions
From Dark Signs Online
Jump to navigationJump to search
(Created page with "''char'' '''CHR'''(''integer'' ASCII_value) Gets a character from an ASCII value. == Parameters == ''ASCII_value'' This is the ASCII code that specifies the return character. == Example == A way to get rid of newlines in a string. <pre>$newline=chr(13)chr(10) $dir=run(ls) $dir=replace("$dir","$newline","") SAY $dir</pre>") |
(No difference)
|
Latest revision as of 04:55, 18 March 2024
char CHR(integer ASCII_value)
Gets a character from an ASCII value.
Parameters
ASCII_value This is the ASCII code that specifies the return character.
Example
A way to get rid of newlines in a string.
$newline=chr(13)chr(10) $dir=run(ls) $dir=replace("$dir","$newline","") SAY $dir