Message 1 of 5

Not applicable
11-22-2015
01:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, guys!
Please help me to understand the logic of (princ)
This is the program I have
+++++++++++
(defun c:PrintTest()
;(setq p2 3)
; (princ)
(princ "\nPoint #2") ;(princ p2)
;(princ (strcat "\nPoint #2 " (rtos (car p2) 2) "," (rtos (cadr p2) 2) "," (rtos (last p2) 2)))
)
+++++++++++++++
I pasted it "as is" without removing comments.
++++++++++++
When I run program, I get the following result:
Command: PRINTTEST
Point #2"\nPoint #2
++++++++++++
I don't understand why it is printed twice.
Thanks!
Solved! Go to Solution.