ascii (AutoLISP)

Returns the conversion of the first character of a string into its character code (an integer)

Supported Platforms: Windows and Mac OS

Signature

(ascii str)
str

Type: String

A single character or text string.

Return Values

Type: Integer

A numeric value in the range of 1-65536.

Release Information

History

Examples

(ascii "A")
65

(ascii "a")
97

(ascii "BIG")
66

(ascii "€")
8364