User Tools

Site Tools


chr_return_character_from_ascii_.htm
Navigation:  Language Reference > 13 - Built-in Functions >====== CHR (return single character) ====== Previous pageReturn to chapter overviewNext page

CHR(code, [unicode])

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

Codepage

LocaleID

chr_return_character_from_ascii_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1