CHR

From Dark Signs Online
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