vl-princ-to-string

AutoCad AutoLISP Functions

 
vl-princ-to-string
 
 
 

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

(vl-princ-to-string  data)

Arguments

data

Any AutoLISP data.

Return Values

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

Examples

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