Function Entry: CHR
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: CHR
Name
chr
Class
Function
Syntax
(chr integer)
Arguments and Values
integer: character code
Autodesk documents the accepted range as 1 to 65536 in Unicode-capable behavior.
Description
Returns a one-character string corresponding to the given character code.
Return Values
String of length one under ordinary observable semantics.
Side Effects
None.
Compatibility
Like ascii, chr is affected by the pre-Unicode / post-Unicode split.
Availability
- AutoCAD 2026: documented (per Autodesk reference page).
- BricsCAD V26: presumed compatible (no contradicting page found).
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
Notes
- Autodesk documents that AutoCAD 2021 changed
chrfrom legacy ASCII-oriented behavior to Unicode-code-point-oriented behavior whenLISPSYSis1or2.