Skip to content
CryoEagle edited this page Dec 26, 2018 · 5 revisions

chr

Returns a string containing a character with given Unicode code.

Syntax:

chr(val)
Argument Description
int val Unicode code to get the string from

Returns: string

Description

This function returns a string containing the character based on the input Unicode code and can then be displayed.

Example:

string str = chr(69) + chr(120) + chr(101);

This would set str to a string value of “Exe” because 69 is the Unicode code for “E”, 120 for “x”, and 101 for “e”.

Back to strings

Clone this wiki locally