Chr()

Syntax

Text$ = Chr(CharacterValue)
Description
Returns a string created with the given character value.

Parameters

CharacterValue The character value. It can be an ASCII value, or an unicode value if the program is compiled as Unicode mode.

Return value

Returns a string created with the given character value.

Example

  Debug Chr(33) ; Will display "!"

Remarks

A table with all Ascii values and their relating figures may be found here.

This command also works in Unicode mode and then returns the related characters associated to the given value.
  Debug Chr(401) ; will display "?"
  Debug Chr(956) ; will display "ΒΌ"

See Also

Asc()

Supported OS

All

<- Bin() - String Index - CountString() ->