| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== CHR (return single character) ====== | [[chord draw a section of an ellipse .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[clear clear a variable .htm|{{btn_next_n.gif|Next page}}]] | | || **CHR(**//code, [unicode]//**)** {{blk2blue.jpg|blk2blue.jpg}} | **CHR** | Returns the display character. | | //code// | A numeric expression containing a numeric ASCII character code. | | //Unicode// | If omitted or equal to zero CHR returns 1 **ANSI** character, if not equal to zero CHR returns 1 **Unicode** character. | //   // The **CHR** procedure returns either a single ANSI or Unicode character represented by the //code// parameter. | **Return Data Type:** | ANSI or Unicode character | | **Example:** | | Stringvar = CHR(122)          !returns ANSI z Stringvar = CHR(65)                  !returns ANSI A UstringVar = CHR(1046,1)        !returns CYRILLIC letter ZHE Ж UstringVar = CHR(931,1)        !returns GREEK letter SIGMA Σ **See Also:** [[val return ascii value .htm|VAL]] [[codepage.htm|Codepage]] [[prop locale.htm|LocaleID]]