vl-prin1-to-string (AutoLISP)

Returns the string representation of LISP data as if it were output by the prin1 function

Supported Platforms: Windows and Mac OS

Signature

(vl-prin1-to-string data)
data

Type: Integer, Real, String, List, ads_name, T, or nil

Any AutoLISP data.

Return Values

Type: String

A textual value containing the printed representation of data as if displayed by prin1.

Examples

Windows
(vl-prin1-to-string "abc")
"\"abc\""

(vl-prin1-to-string "c:\\acadwin")
"\"C:\\\\ACADWIN\""

(vl-prin1-to-string 'my-var)
"MY-VAR"
Mac OS
(vl-prin1-to-string "abc")
"\"abc\""

(vl-prin1-to-string "/myutilities")
"\"/myutilities\""

(vl-prin1-to-string 'my-var)
"MY-VAR"