本帖最后由 llsheng_73 于 2023-12-14 13:09 编辑
- (defun READZC(str val / va)
- (set(read str)
- (if(setq va(vl-registry-read "HKEY_CURRENT_USER\\Software\\NUM\"" str))
- va val))
- )
_$ (defun READZC(str val)
(set(read str)
(if(set(read str)(vl-registry-read "HKEY_CURRENT_USER\\Software\\NUM\"" str))
str val))
)
READZC
_$ la
nil
_$ col
nil
_$ (READZC "col"1)
1
_$ col
1
_$ (READZC"la""图层1")
"图层1"
_$ la
"图层1"
_$(vl-registry-write "HKEY_CURRENT_USER\\Software\\NUM\"" "la""图层2")
"图层2"
$ (READZC"la""图层1")
"图层2"
_$ la
"图层2"
_$
|