chr

AutoCad AutoLISP Functions

 
chr
 
 
 

Converts an integer representing an ASCII character code into a single-character string

(chr integer) 

Arguments

list

An integer.

Return Values

A string containing the ASCII character code for integer. If the integer is not in the range of 1-255, the return value is unpredictable.

Examples

Command: (chr 65)

"A"

Command: (chr 66)

"B"

Command: (chr 97)

"a"