Function Entry: ASCII
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: ASCII
Name
ascii
Class
Function
Syntax
(ascii string)
Arguments and Values
string: string whose first character is examined
Description
Returns the code of the first character in the string.
Return Values
Integer character code.
Side Effects
None.
Compatibility
Autodesk explicitly documents behavior changes after AutoCAD 2021 due to Unicode support.
Notes
This function is one of the clearest probes into the observable character model of a given host/version.
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
- [ascii (AutoLISP)](https://help.autodesk.com/cloudhelp/2026/KOR/AutoCAD-LT-AutoLISP-Reference/files/GUID-03E1B586-72CB-4AB6-A151-B581AE530318.htm)
- Status: documented.