muthu123 发表于 2022-7-6 11:02:13

list convert to string - help

I have a list like this
 
(1STUBCOLBM-01BM-0100025015.5600)
 
and it sholuld be converted to like this. Each element of the lisp will be converted to string.
 
 
("1" "STUBCOL" "BM-01" "BM-01" "0" "0" "0" "250" "15.56" "0" "0")
 
 
Yours,
Muthu

jammie 发表于 2022-7-6 11:41:26

vl-princ-to-string could be useful for this example
 

(mapcar 'vl-princ-to-string '(1 STUBCOL BM-01 BM-01 0 0 0 250 15.56 0 0))("1" "STUBCOL" "BM-01" "BM-01" "0" "0" "0" "250" "15.56" "0" "0")
 
Regards
 
Jammie

muthu123 发表于 2022-7-6 11:42:54

 
 
Thank you so much..

jammie 发表于 2022-7-6 12:10:05

Your welcome
 
Glad to help
 
-Jammie
页: [1]
查看完整版本: list convert to string - help