vl-prin1-to-string

AutoCad AutoLISP Functions

 
vl-prin1-to-string
 
 
 

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

(vl-prin1-to-string  data)

Arguments

data

Any AutoLISP data.

Return Values

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

Examples

_$ (vl-prin1-to-string "abc")
"\"abc\""
_$ (vl-prin1-to-string "c:\\acadwin")
"\"C:\\\\ACADWIN\""
_$ (vl-prin1-to-string 'my-var)
"MY-VAR"
See Also