Motee Posted October 3, 2022 Share Posted October 3, 2022 I have list consist of real number i want to show this list through alert any help Quote Link to comment Share on other sites More sharing options...
Motee Posted October 4, 2022 Author Share Posted October 4, 2022 No answer till now Quote Link to comment Share on other sites More sharing options...
Jonathan Handojo Posted October 5, 2022 Share Posted October 5, 2022 (alert (vl-prin1-to-string lst)) Quote Link to comment Share on other sites More sharing options...
BIGAL Posted October 6, 2022 Share Posted October 6, 2022 You can use strcat so making a statement. (setq lst '(123.45 678.99 100.34)) (alert (strcat "x= " (rtos (nth 0 lst) 2 2) "\ny= " (rtos (nth 1 lst) 2 2) "\nz= " (rtos (nth 2 lst) 2 2))) Quote Link to comment Share on other sites More sharing options...
ronjonp Posted October 6, 2022 Share Posted October 6, 2022 (edited) Another to print individual items to the command line: (mapcar 'print '(1 2 3 4 5 6 7 8 9 "A" nil)) And for alerting individual lines: (alert (apply 'strcat (mapcar '(lambda (x) (strcat "\n" (vl-princ-to-string x))) '(1 2 3 4 5 6 7 8 9 "A" nil)) ) ) Edited October 10, 2022 by ronjonp 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.