CHR

From Dark Signs Online
Revision as of 03:55, 18 March 2024 by Doridian (talk | contribs) (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>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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