Community
Dear All,
I am new in Lisp can you help find my problem please?
numlst is a group of number
(setq dcm (getstring "\nDCM Name: "))
(setq minn (apply 'min numlst)) <<<<< I believe this line has something wrong
(princ (strcat dcm "," minn))
error :bad argument type: symbolp nil
Many Thanks,
Bruce
Solved! Go to Solution.
"strcat" is working only for strings.
you need to convert the number to string.
refer "rtos" function.
(setq dcm (getstring "\nDCM Name: ")) (setq numlst '(1 2 3 4)) (setq minn (apply 'min numlst)) (princ (strcat dcm "," (rtos minn 2 0)))
Can't find what you're looking for? Ask the community or share your knowledge.