f4800 发表于 2021-12-25 17:40:55

先设置编辑框的值 然后再获取该值 但是失败 请教

(SET_TILE "xshwsh" "3")
(SET_TILE "kzdj" "0.25" )   
(SET_TILE "gchzhjgsh" "1" )


(setq xshwsh (GET_TILE "XSHWSH"))
(setq KZDJ   (GET_TILE "kzdj"))         
(setq GCHZHJGSH (GET_TILE "gchzhjgsh"))                

各位大师   我用上面代码设置编辑框的值 ,然后在获取该值。。。但总是 nil这个 问题再哪里啊?



masterlong 发表于 2021-12-25 17:46:48

只能在action_tile里获取你需要控件的值

masterlong 发表于 2021-12-25 17:56:15

;;主控程序
(new_dialog   ......)
(SET_TILE "xshwsh" "3")
(action_tile "应用" "(getdclv)(setdclv)")
(action_tile "accept" "(done_dialog 1)")
(setq oke (start_dialog))

;;调用函数
(defun getdclv()
   (setq xshwsh (GET_TILE "XSHWSH"))
)
(defun putdclv()
(SET_TILE "kzdj"(strcat (get_tile "kzdj") "--" xshwsh))
)

差不多就是这样吧

f4800 发表于 2021-12-25 19:32:32

多谢大师指导我试下
页: [1]
查看完整版本: 先设置编辑框的值 然后再获取该值 但是失败 请教