0 Members and 1 Guest are viewing this topic.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 11,-,2,-,3,-,4,-,5,-,6,-,7,-,8,-,9,-,10,-,11,-,1
not working
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 11 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 1
(vla-put-textstring ent (LM:stringsubst " - " "," (vla-get-textstring ent)))
(vla-put-textstring ent (LM:stringsubst "," " - " (vla-get-textstring ent)))
Hi I have a lot of mtext like this 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 1 and I want to do this 1,2,3,4,5,6,7,8,9,10,11,1. Replace " - " with ",". How to do this with lisp?Thanks
Thanks Lee Mac. To work I did a little change to your codeI replace this Code: [Select] (vla-put-textstring ent (LM:stringsubst " - " "," (vla-get-textstring ent)))withCode: [Select](vla-put-textstring ent (LM:stringsubst "," " - " (vla-get-textstring ent)))for some reason work, like this .....Thanks