Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
Is there a way to get retained values from a function ??
In the folowing i wish to get the canged by fni value of Val1
(defun fNotify (Value)
(princ (strcat "\n" (strcat "------> " (vl-princ-to-string Value))))
(princ "\n" )
(princ)
)
(defun fn1 (Val1 )
(setq Val1 123)
(fNotify Val1) ;;;; ------> 123
)
(defun c:xx(/ Val1 )
(setq Val1 1 ) ------> 1
(fn1 Val1 )
(fNotify Val1 ) ------> 1 (not 123)
)
Thanks,
Gery
Solved! Go to Solution.