Returns a string containing the character with the given Unicode code.


GML Code Example


Argument Description
val The Unicode code to get the string from.

Returns: String


This function returns a string containing the character which relates to the input Unicode code for displaying. This character depends on the current drawing font's character set codepage and if no font is set, it will use the default code page for the machine.


GML Code Example

mystring = chr(53) + chr(48);

This would set mystring to "50" (a string, not an integer) as chr(53) is "5" and chr(48) is "0".

Back: Strings
Next: ord

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here