Chr$ – String Management Function**





Chr$ Function


Description

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

Syntax

var$ = Chr$()

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)