str = chr(nCodePoint)
This macro function returns the character whose Unicode code point is nCodePoint.
A common use is to be able to insert apostrophes (Unicode code point 39) which is not easy to do in the macros editor.
sHolAbbreviations = GetHolAbbreviationFromTable()
// use chr() to display "Today's a holiday in:"
sResult = 'Today' + chr(39) + 's a holiday in: ' + sHolAbbreviations
Use the decimal Unicode character number shown in Q++Studio's Font and Character Map. For example, the following code produces the Chinese character for horse (馬).
sHorseCharacter = chr(39340) // 馬
Each call returns one UTF-16 code unit. A character in the Basic Multilingual Plane (a Unicode value from 0 to 65535, excluding the surrogate range 55296 to 57343) can be produced by a single call. Characters above 65535 require a surrogate pair and are not produced by a single call.
See also: the character selection dialog.
Topic 178285, last updated on 14-Oct-2026