只需一步,快速开始
有一级此格式的数据,在程序读取中,只能使/前的数据相加,/后的数据读不出来。
请教高手,如何解决?
急!
二○○九年六月十三日
使用道具 举报
(setq str "555/888")(substr str (+ (vl-string-search "/" str) 2))
-》
"888"
谢谢楼上这么快地回复。
能否不用vlisp,而只用autolisp语言?
盼望能再次答复。
(setq str "555/888")(setq i 1 j nil)(while (< i (strlen str)) (if (= (substr str i 1) "/") (setq j i i (strlen str)) (setq i (1+ i)) ))(if j (substr str (1+ j)))>>"888"
谢谢楼上所有给我帮助的朋友。
感谢了。
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2025-2-24 20:51 , Processed in 0.182931 second(s), 25 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.