Chr$

String management function.

The Chr$ function converts an <ASCII_value> into its equivalent ASCII character.

Syntax

var$=Chr$(<ASCII_value>)

Parameter

<ASCII_value>: number between 0 and 255. If an invalid value is passed, the script stops at execution with a runtime error.

Return value

var$, the number is converted to a character, so other functions can manipulate non-displayable characters (for instance : a$=Chr$(13), a$ returns CRLF).

See also

Asc

Examples

 

var$=chr$(123) 'returns "{"

x=34
var$=chr$(x)